This simple electric motor works by the magnetic force F = IL x B.
The current goes around the coil so that it points one direction in one end of the loop and in the other direction at the other end of the loop. The magnetic field at both of these spots points in the same direction. Thus, the magnetic force on the wire at opposite ends of the loop points in opposite directions, causing it to spin.