A student claims that since the three phases have different amounts of energy, molecules in substances gain or lose energy only during phase transitions. Explain what is wrong with this student's reasoning.