Water flows into and out of the lock chamber by the force of gravity
or in other words, by the pressure of the high level of water and not by
pumps. This flow of water is controlled by valves at both the upper
and lower end of the lock chamber.
The upper valves are then opened. This permits water to flow from the upper pool into the lock chamber. Since the lower valves and lower lock gates are closed, the incoming water cannot escape from the lock chamber. Water seeks its own level, so the water flowing into the lock chamber rises until it reaches the same level as water in the upper pool. Naturally, the rising water lifts the boat to the higher elevation.
With the water level in the lock chamber now the same as in the upper pool, the upper lock gates are opened to allow the boat to exit the lock chamber into the upper pool.With the water in the lock chamber now at the same level as the lower
pool, the lower lock gates are opened to allow the boat to exit the lock
chamber into the lower pool.