Answer explained
Principle
An electric motor converts electrical energy into mechanical energy. A current-carrying conductor placed in a magnetic field experiences a force. Its direction is given by Fleming's left-hand rule.
Construction
A simple DC motor contains a rectangular coil ABCD mounted on an axle between the poles of a magnet. The ends of the coil connect to the two halves of a split-ring commutator. Carbon brushes connect these halves to a DC source.
Working
When current flows through the coil, its opposite sides AB and CD carry current in opposite directions. The magnetic field exerts opposite forces on them, producing a turning effect that rotates the coil and axle.
After each half-turn, the split ring reverses the current through the coil. The forces on the sides reverse at the appropriate positions, so the turning effect continues in the same rotational direction.
Conclusion
The coil keeps rotating while the supply is connected. Motors are used in fans, mixers, pumps and many other machines.