As heat is applied to a substance, it changes states. as heat is applied a substance goes from solid to liquid, liquid to gas, and even solid to gas. As for cooling, it goes from either gas to solid, or gas to liquid, and liquid to solid. the point that separates these three stages is called the triple point and the point when the gas and liquid phases become one.