Macbook(Intel) OS X 10.5.8 sound stopped working

i can vouch for this, have spent hours trying everything from a software point of view i can think of, never occured to me to check in the headphone port to solve the internal speaker not working! many thanks