There is a little switch in the headphone jack that seems to get stuck.
You can sometimes unstick it by putting the headphone plug in and out a few times or by putting something carefully into the hole and jiggling it about a bit.
Try a search on this site and you will find many threads about it.