Input (grade 11): When the temperature of a substance changes, the energy that is stored in the intermolecular bonds between atoms changes.
Output (grade 10): The reason is that during heat transfer, the energy that is stored in the intermolecular bonds between atoms changes.