The headphone jack is probably stuck or something. First, make sure the jack's clean. Then, try turning off the phone and turning it back on again, if that doesn't help, try putting a pair of headphones in and then taking them back out. If that doesn't work, there might be some damage to the jack itself.