The energy is recovered when demand is high by releasing the water, with the pump becoming a hydroelectric power generator.
How is the energy stored by pumped-storage hydroelectricity recovered?
by releasing the water, with the pump becoming a hydroelectric power generator