(Highly simplified!) Electricity is generated in the coils of wire spun near the magnets. The turbine spins the coils. Super-hot steam heated by the reactor blasts through the turbine.