Look inside the jack. If it is dirty, clean it with a cotton swab. If that doesn’t help, look around in the audio settings of your phone.
open