Sometimes the jacks go bad, solder breaks, or wires break.
If, after checking your connections the problem persists. An easy resolution would be to install a audio front panel if you have an extra bay - you should, like this one
, or this one
has a mic and headphone jack too.