Submarines communicate to people above the water by radio signals through use of deployable radio masts, periscope or a floating wire antenna.
They then communicate using radios to speak with each other like they would above the water.
Submarines can also transmit radio signals while submerged in the ocean via a bouy system.