Why Ships and Planes don’t get lost in the middle of the Ocean??

Why ships and Planes don’t get lost in the middle of the Ocean?? They use the longitude and latitude lines on the map to help them navigate.