the plug were i used to plug my headphones and speakers is no longer working anymore.
Is this a physical problem and your are referring to the plug (i.e., the thing attached to the headphone's wire) or the jack (socket) in the computer iself. If it's the plug that's a trivial DYI fix using a plug you can pick up most anywhere (e.g., Radio Shack) and a soldering iron. If it's the socket in the computer, that's a bit more work. Not impossible, but not somthing I would put in the DYI class.
If this is a software problem, not sure at this point what to suggest -- maybe smc/pram resets.
[I don't understand the previous reply at all 😕 ]