Please take some time to review the below instructional videos on how to safely recover after flipping on the water.
For a bow-rigged 1x:
For a 1x with back-stays:
If you cannot safely get back in to the boat, this video demonstrates how to safely paddle the boat back to shore: