According to the kinetic theory of gases, when a substance is heated, the average kinetic energy of its molecules increases and this leads to a rise in temperature.