The main function of the stator is to generate a magnetic field and support the rotor to rotate.
The rotor is the rotating part of the motor, which is mainly composed of iron core and winding.
The main function of the rotor is to be forced to rotate in the magnetic field generated by the stator.