Dear Student
The principle of an electric motor is based on the magnetic effect of electric current. A current-carrying loop experiences a force and rotates when placed in a magnetic field. The direction of rotation of the loop is according to the Flemings left-hand rule.
Regards