Energy is required to change the phase of a material, with the change in energy either it decreases or increases. When the phase is changed, the temperature and kinetic energy does not change it stays the same but the internal energy changes. Internal energy is the sum of chemical potential energy and kinetic energy of the molecules, and when the internal energy changes during a phase change it means average potential energy is changing.