The energy needed to produce a change of phase per unit mass is known as latent heat. This energy does not contribute to increasing the velocity of the particles in the body, it modifies the forces of attraction among the particles, which are different in different states.