Alternator, electric motor, generator are all the same basic hunks of metal; rotor, stator, shaft, housing.
Spin the shaft, they create alternating current at some voltage that is proportional to their speed.
Hit them with some voltage, they start spinning.
Add a few safety controls to give it a definite purpose to make it a little more reliable; circuit breakers on a gen, thermal overloads on a motor.
Cornbelt - did you get your deep freeze crunk up?