The starter motor is attached to end of the crankshaft via a flywheel and a pinion gear. When the ignition is turned the starter motor activates and an electromagnet inside pushes a rod out with the pinion gear. This rotates the flywheel and the engine is turned over.