First the water goes into the reservoir and into the intake. Second the control gate open and the water flows in the penstock, that runs the turbine and goes out of the outflow.
While the turbine is running it powers the generator and the generator sends electrons to the transformer. Next the transformers sends electrons thorough the power lines and to the transmission. Usually the power houses is next to the dam or behind the dam.