Kinetic Energy (Vibrations) - Increases whenever the temperature increases
Potential Energy - Increases when the temperature is NOT increasing (during the phase change)
Temperature DOES NOT CHANGE during a phase change. The energy goes into pulling apart atoms/molecules to weaken and overcome the intermolecular forces.