The average energy of motion of particles in a substance is its kinetic energy. Therefore, temperature is the measure of the average kinetic energy of the particles of a substance. The thermal energy of the substance is the total energy of the substance.