A simple DC electric motor is used in toys because it is a small motor, with a diameter slightly larger than a 50 cent coin. On the outside are the steel housing that makes up the body, an axle, a nylon cover and two wires to connect to the battery. When connecting the motor wires to a flashlight battery, the shaft rotates and when reversing the wires, it will rotate backwards. The shaft supports the armature and the commutator.
The armor is a set of electromagnets composed of thin metal plates joined together with copper wires wound around each of the three poles of the armature. https://www.mrosupply.com/automation/ac-variable-frequency-drive/2527065_17465800_leeson/
An electric motor of direct current works due to magnets and magnetism, where it uses magnets to create movement. The fundamental law of all magnets is: opposing poles attract and equal poles repel. When picking up two magnet bars with the edges marked “north” and “south,” the north end of one magnet will attract the south end of the other. Otherwise, the north end of one magnet will repel the north end of the other. Inside an electric motor these forces of attraction and repulsion create the movement of rotation, movement.