Heat has been applied and the amount of air molecules remains the same. However, the molecules start to move faster and collide with the sides, the lid and each other. They start to exert pressure on the body of the container. As more heat is applied, the air molecules move even faster causing the pressure and temperature to increase.