if it is a desktop pc try pluging it on on the rear of the pc, not the front
if that doesn't work then probably the wires are loose and you ll have to solder it
My headphone's wire broke so i tried to solder it back and doing so the little pcb fell out, is there any way to solder the wires directly to the speaker and not to the + and - thing i broke(is it called terminal?)?
Broken: https://imgur.com/a/5JzJwmW
Working: https://imgur.com/a/vk49vVP