As long as the plane has communication to ATC or other planes, the pilot would report the problem and his/her next cause of action. This would include the intention to divert to the closest airport or to do an emergency water landing if there is no other option.