Rivers maintain their flow through a combination of precipitation, surface runoff, and groundwater discharge. These sources replenish the water in a river and ensure a continuous flow.