The motor is designed to generate heavy torque which can turn the engine. The engine of the car thus rotates.
As it rotates, it draws air and fuel into it cylinders and the engine begins to rotate on its own. As soon as the engine picks up speed, the starter motor disengages and the ignition is switched off.
The starter motor is usually a permanent magnet DC motor or a DC series-parallel wound motor.