The average kinetic energy K.E(av) is measured by:
K.E(av)=3/2RT
the average kinetic energy is directly proportional to the temperature .
When water freezes, the temperature decreases and therefore, the average kinetic energy will also decreases as well.