During a change in state the heat energy is used to change
the bonding between the molecules. In the case of melting, added energy is used
to break the bonds between the molecules. In the case of freezing, energy is
subtracted as the molecules bond to one another. These energy exchanges are not
changes in kinetic energy. They are changes in bonding energy between the
molecules.