You omitted the make and model so try System Restore to when it worked (how is on the web and if it fails due to antivirus suites, be sure to ask the AV maker how to enable SR.)
The usual fix is the under 10 buck USB audio dongle. Examples at:
https://www.amazon.com/Best-Sellers-Electronics-External-Sound-Cards/zgbs/electronics/3015427011
Suddenly a couple of days ago my headphone jack does not work. Only the laptop speakers work. Even when I mute the speakers, the headphones still do not have any output.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic