When matter changes state (solid, liquid, gas) molecular bonds are restructured. the bond restructuring requires energy for bonds and forces to form/breakdown/rearrange. While this occurs, additional energy does not affect the average kinetic energy, thus the heat energy, meaning there is no temperature change. The process of changing state/ phase change requires energy gain/ loss as the material/ medium has a change in P.E.