Could be caused by dirty contacts inside the jack socket, spray a little WD40 on to a pipe cleaner, insert into jack socket, give it a twist or two even a
wiggle if you like

then try headphones again.
Do your speakers have a headphone socket on them, many do? IF so use that.