Rushing water spins a turbine, which rotates the shaft of an electric generator to produce electricity.
and second part it turns to steam that turns a turbine which generates electricity