Big bucket high up is basically a battery. The question then becomes about the details of, like, using the power when the water gets pumped down (if you had two canals, you could probably time filling one with draining the other?). There's a lot of practical things to consider
Reminds me of this lesson in gravity: https://www.youtube.com/watch?v=vFUj6LH4FSI
Water power efficency is about 80-90%
To start with, there is a difference in the water levels - and this can be put through a generator to generate electricity as the water flows from one lock to the other.
When the water has moved half way, the levels are equal. You can now use electricity to pump the rest of the way - and theoretically, assuming lossless pumps and generators, you use the same amount you generated earlier.
Unfortunately, low-head generators tend to be inefficient and expensive. Variable head generators are even harder to design to be efficient.