Dear student,
The principle of the electric motor is based on the fact that a current carrying conductor produces a magnetic field around it. A current carrying conductor placed perpendicular to magnetic field experiences a force. due to this force , rotation takes place.
Regards