how is the working of a power station generator connected to electomgnets

when a wire is moved through a magnetic field, current is generated.