Default broken headphone jack

So recently i noticed that my headphone jack doesn't work anymore. When i play sound, sound comes out of the speakers. But when i plug in my headphones, i can hear static when i'm wearing the headphones. I'm still not sure if the jack itself is broken or if there is a software issue. I want to make sure if it's really necessary to buy a new jack because i don't want to waste money and time ordering one...