An engine works by converting various forms of energy into mechanical motion. In the case of an internal combustion engine, fuel is mixed with air and ignited, creating a controlled explosion that drives pistons, which in turn, rotate the crankshaft. This rotational motion is then transmitted to the wheels.
There are different types of engines, including gasoline engines, diesel engines, rotary engines, electric engines, and hybrid engines. Each type operates on different principles and fuel sources.