The generation of electrical power requires relative motion between a magnetic field and a conductor. In a generator, mechanical energy is converted into electrical energy.
Answer 2
The generator, in turn, converts the mechanical energy to electrical energy based on the relationship between magnetism and electricity.