Explanation
A generator converts mechanical energy into electrical energy through electromagnetic induction, where motion within a magnetic field induces an electric current. Motors do the opposite, transformers change voltage levels, and a coil is just a component.