Answer:
The transfer of energy to a substance or from a substance can change the state of matter of the substance. For example, when water in the liquid state is heated the molecules of water start to move vigorously and hence the liquid state of water gets converted into the gaseous state in the form of steam. When liquid water is cooled down the molecules compress and form ice changing the liquid state of water into the solid-state.