Describe how energy is lost or gained during changes of state

Describe how energy is lost or gained during changes of state