Fleming's left hand rule helps you understand the direction of the force
This direction of force can be used to rotate the motor.

To explain this, a coil with electric current is placed between the north pole (N) and south pole (S) of a magnet.

When electric current flows through the coil, the magnetic field and the current interact. This generates a force on the coil, causing it to rotate.