Most electric motors fulfill their functions through the interaction between electromagnetic fields, however, it should be emphasized that there are other types of motors based on different electromechanical phenomena, such as electrostatic forces, for example.
The fundamental idea in which electromagnetic motors are idealized is that there is a mechanical force across the wire at the moment the electric current is being driven if it is immersed in a magnetic field. The force is described basically in the law of Lorentz force, being perpendicular to the wire and also to the magnetic field.
When it is a rotating motor, there is a rotating element, consisting of the rotor, responsible for performing the rotation by the wires and the magnetic field arranged so that a torque is developed on the rotor center line.
It can be said that most of the magnetic machines are rotating, but there are also linear types. If the motor is rotating, the rotatable part is called the rotor, and the stationary part, the stator part. Briefly, the motor is composed primarily of electromagnets installed in grooves of the ferromagnetic material, which make up the rotor body.