Step-by-step explanation:
Energy is always involved in changes of state. Matter either loses or absorbs energy when it changes from one state to another. For example, when matter changes from a liquid to a solid, it loses energy. The opposite happens when matter changes from a solid to a liquid.