Surface water (streams, lakes, oceans, rivers, etc.) are replaced through precipitation. This can be in the form of rain, snow, hail, and so forth. Snow or ice melt also replenish surface water.
In the image below, precipitation is contributing to the surface water:
Check out this site to learn about groundwater.