Which of the following statements best describes what occurs as water freezes?

A. Thermal energy is increasing, and temperature is decreasing.
B. Thermal energy and temperature are decreasing.
C. Thermal energy and temperature are constant.
D. Thermal energy is decreasing, and temperature is constant.