How Is Motor’s Mechanical Energy Able to Perform Mechanical Work?

1. Mechanical energy is converted into electrical energy
2. A current is generated by a rotating loop in a magnetic field
3. Electrical energy is converted into a magnetic force
4. A shaft connectred to the rotating coil is attached to some external device
Please help! Thank you!
