Electromagnetism is the principle that explains how electric motors work.
An electricgenerator is a device that converts mechanical movement into electricity.
An electric motor is a device that converts electricity into mechanical movement.
Electric and magnetic forces are required for generators and electric motors to work.
A coiled wire in an electric motor would rotate and change electrical into mechanical energy, if there is a repulsion and attraction of magnetic poles.
A generator is a device that produces an electric current when a coil of wire us wrapped around an iron core and rotated near a magnet.
Michael Faraday discovered electromagnetic induction,
A commutator changes AC to DC voltage within the armature winding of a generator.
The basic parts of an electric motor is the commutator, stator, and rotor (CSR).