Info regarding failed borewell

We dug about 500 ft deep borwell and found water but it was flowing under the ground and was of no use to us. Because of the water flow, we can't get water as we desire. What is a possible suggestion to this problem? Please help.