If you see the orange dot indicating water damage, you'll need a repair to get your iPhone out of headphone mode. You can also try to save the phone from water damage. It's possible that your ...
Audio not playing through the headphones is a sign of a potential hardware problem, but it's not the only possible culprit.