The correct answer is:
D. The molecules lose energy, and their relative motion decreases.
When a substance transitions from a liquid to a solid, the molecules lose energy, which leads to a decrease in their movement. This reduced energy allows the molecules to settle into a more fixed and orderly arrangement, characteristic of a solid state.