Answer:
A generator produces electricity when a conducting wire is rotated between magnetic field. Mechanical energy is converted to electrical energy. Fleming's right hand rule is used.
An electric motor does mechanical work using electrical energy. A current carrying coil is placed in magnetic field. A torque is exerted on the coil and it rotates. Electrical energy is converted to mechanical energy. Fleming's left hand rule is used.