Heat transfer works by transferring energy from one substance to another via convection, conduction or radiation. Particles in a substance are able to store energy and transfer it to other particles, often in the form of heat.
Convection, one of the major types of heat transfer, involves energy moving from high areas of heat to low areas. If one area is hotter than a nearby area, heat will be transferred until both areas are the same temperature. Conduction occurs between two substances in contact. Energy is transferred as a result of molecular movement and interaction. Radiation heat transfers occurs on some level from all objects, as atoms emit energy as electromagnetic waves, which can be absorbed by other atoms.