Introduction to Thermochemistry
Energy is the capacity to do work or to transfer heat. You do work when you walk up a flight of stairs. You can feel the heat from the sun when you step in the sunlight. Both are energy.
Heat is associated with changing the temperature of an object. The temperature changes because energy is being transferred to it. Another word for heat is thermal energy.