I had the same problem and chatted with tech support and they told me to reset the PRAM and SMC which did not fix the issue. After contacting them a second time I was told my computer needs to be repaired. Which is not the problem it is a software issue.
What finally fixed it was (this was done after resetting the PRAM and SMC):
* Note: you can try this first and maybe it will solve your issue if not reset the PRAM and SMC then do the following.
1. Open system preferences
2. Chose sound
3. Chose Output then headphones
4. With headphones plugged in I checked the mute box on the bottom right and unchecked it they worked.
Then when unplugged the speakers didn't work so I did the same but choosing the internal speakers
OS X Mavericks: Reset your computer’s PRAM
Intel-based Macs: Resetting the System Management Controller (SMC)
Hope this helps others!!