The operation of a simple motor basically consists of a coil, whose main function is to rotate between two permanent magnets. The magnetic poles of the coil, represented as magnets, are attracted by the opposing poles of the fixed magnets. The coil rotates so you can carry these magnetic poles as close as possible to each other. However, upon reaching this position, the current direction is automatically reversed and the opposing poles eventually repel each other, giving continuity to the rotor drive.
In a simple motor, in which the stator is composed of permanent magnets, and the rotor is a coil of enameled copper wire, through which the electric current passes, once the electric currents produce magnetic fields, this coil will behave like a Permanent magnet.
As the opposing poles become attracted, the coil is exposed to a torque that acts to rotate the coil, undergoing an angular acceleration and continuing its rotation. This torque continues until the coil poles can reach the opposing poles of the fixed magnets. In this case, there is no torque, since the lever arms are zero.