Hello Jas,
First thing that you want to try before assuming it's a hardware problem is to hard reset your phone. You can do this by holding the Power and Home button for 10-15 seconds, or until the screen goes black and the Apple logo shows up again.
Second, try to plug in a pair of headphones into the headphone jack and remove it after. Sometimes, the headphone jack may appear to be "stuck" because it still thinks there are headphones in the phone.
If these troubleshooting tips did not work, then I am afraid it may be a broken headphone jack. Unfortunately, since the headphone jack is tied to the lightning cable flex cable, you have to replace the whole flex cable. iFixit has the part available on their website if you look up the product code IF124-010-1 in the search bar, but I recommend eBay/Amazon because it is significantly less expensive.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
2
crwdns2947414:01crwdne2947414:0
Hi, read all the comments and questions and found my situation, re-opened the case, connected the little bus bar next to the battery connection and voilà, I got the phone jacks to work again!! Yeahhhh! Nice site. Elmer D., Canada
crwdns2934271:0crwdnd2934271:0 Elmer Doell crwdne2934271:0