Molecules of a gas are in a state of continuous random motion. They possess kinetic energy. When a gas is heated, there is increase in the average kinetic energy per molecule of the gas. Hence, its temperature increases (the average kinetic energy per molecule being proportional to the absolute temperature of the gas).