Energy is released or required to form/break forces of attraction between particles. This causes a change in potential energy, and not its kinetic energy. Since temperature is a measure of average kinetic energy, this means that there ia no change in temperature during a phase change.