A modern gas or diesel engine works like a big air pump. Air comes in, fuel is added, the air-fuel mix ignites, and the exhaust is pushed out the back. An engine turns the pushing force of the air-fuel mixture igniting into a spinning force that can turn the transmission and then the wheels.