Make and model?
the headphone socket contains a "switch " which cuts out the speakers, if this is jammed that's why you have no sound. Try plugging and unplugging the heaphones a few time to see if it will free it.
If the socket is damaged the problem ma be harder if connected direc to the motherboard. easier to replace if connected by a cable to the board.