Why does water freeze?

The reason water freezes is that as heat energy leaves the water, the water molecules move more slowly. Ice crystals begin to form a solid lattice with higher cohesion between molecules. If the ice is reheated, it will lose its lattice structure and resume liquid form.