I have a late 2008 My MacBook running OS X Yosemite. It suddenly stopped playing audio through the internal speakers. I've checked Sound under System Preferences, and headphones show up as the selected device for sound output. I tried connecting and disconnecting some headphones, and the MacBook did change the output to internal speakers, but only for a second. I then tried restarting the MacBook to see if it was something with software but it stayed the same. I also tried lightly cleaning the headphone port with a q-tip but that did not work.
Does anyone have any suggestions on how to resolve the issue?