The transfer of heat from an object's surroundings increases the energy of the particles that make up the object. Raising the kinetic energy of a particle increases its movement.
Heat isn't a component of an object but the energy an object may receive. Raising the temperature of an object's environment provides the object with a source of energy. That energy is absorbed by the particles that comprise the object. The increased energy of the particles makes them move faster. The overall absorption of heat and greater kinetic energy also increase the temperature of the object.
This energy transfer from the environment to the object serves to cool the environment. The object that receives the energy is in turn able to expel the energy back into the environment.
The energy absorption and subsequent change in the temperature of an object may also change the object's form. An object exists as a solid, liquid or gas. Increasing the temperature and the kinetic energy of the particles can cause the object to move from a solid format to a liquid or gaseous one, depending on its composition. The more energy the particles have, the faster they move, and gaseous particles move quickly and erratically as opposed to the solid form. The temperature required to change an object from one form to another varies, but the basic principle that their kinetic energy increases as the temperature increases is common to all substances.