The basic principle on which the electric motor works is the magnetic effect of current. A current carrying a rectangular coil starts rotating when placed in a magnetic field. This happens because a continuous magnetic force acts upon it. Rotation of the coil also results in the rotation of the shaft attached to it. Thus, through this process, a motor converts electrical energy into mechanical energy and the motor starts.