According to Charles' law, gases will expand when heated. The temperature of a gas is really a measure of the average kinetic energy of the particles. As the kinetic energy increases, the particles will move faster and want to make more collisions with the container. However, remember that in order for the law to apply, the pressure must remain constant. The only way to do this is by increasing the volume.