Work is done by the gas as it exerts a force through a distance, converting its energy into a variety of other forms-into the car’s kinetic or gravitational potential energy into electrical energy to run the spark plugs, radio, and lights and back into stored energy in the car’s battery. A car engine, for example, burns fuel for heat transfer into a gas. It can also be converted to any other form of energy.
Heat transfer is energy in transit, and it can be used to do work.