Heat, which is energy, either comes into the material during a change of phase or heat comes out of the material during this change. When we heat a solid, the energy supplied is used to increase the kinetic energy of its molecules, and thereby itstemperature increases.