The three changes of phase described in this problem are:
Melting: melting occurs when a substance in solid state turns into liquid state. Since molecules in liquid state have more energy than molecules in solid state (because in liquids, molecules can slide past each other, while in solids they can't move, but only vibrate), thermal energy must be added in order to melt a substance
Freezing: freezing occurs when a liquid substance turns into solid state (the opposite of melting). Since molecules in liquid state have more energy than molecules in solid state, thermal energy must be removed from the substance in order to cause freezing
Condensation: condensation occurs when a gaseous substance turns into liquid state. Since molecules in gaseous state have more energy than molecules in liquid state, thermal energy must be removed from the substance in order to cause condensation