Answer:
Heating water causes molecules to speed up and spread further apart, occupying a larger volume that results in a decrease in density.
Cooling a water causes molecules to slow down and get closer together, occupying a smaller volume that results in an increase in density.