Step-by-step explanation:
When water is in liquid form then its molecules have some kinetic energy. As a result, there will be collisions between the molecules and thus, force of attraction between then will be less.
On the other hand, when this water starts to freeze then its molecules will gain potential energy. As a result, molecules have come closer to each other and thus, there will be increase in force of attraction between them.
Thus, we can conclude that when water turns to ice then kinetic energy changes into potential energy.