Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
I think the jack probably needs replacing, if I've got the details you've mentioned down right.
A jack generally has an internal switch, that inserting the plug changes the position of. In that different position, the switch cuts off sound to the speakers, but still allows it through to the headphones.
Check whether the headphones still have sound. If they do, replacing the jack with a new one of the same type is probably what your wiring needs.