When matter is heated it gains in energy. This energy increases the molecular speed of the atoms and molecules on the matter.
If enough energy is added the matter will change state from a solid to a liquid or from a liquid to a gas.
If enough energy is added the matter will change state from a solid to a liquid or from a liquid to a gas.