The motor in a generator works on the principle that when a current-carrying conductor is placed in a magnetic field, it experiences a force and rotates.
The motor runs on the electrical input current while the generator creates the electrical output current, with power flowing between the two machines as a mechanical torque; this provides electrical isolation and some buffering of the power between the two electrical systems.
And finally, the kind of motor that is used in a generator is both brushed and brushless DC motors
Learn more about motor generators:
https://brainly.com/question/2399979