It's possible that your iPhone's headphone jack didn't recognize when you last unplugged your headphones and still thinks ...
You may just have a bad connection, which can make it seem like the jack is bad. Try gripping the headphone plug firmly, ...