No sound from mac, how to find the problem?
Your MacBook believes you've plugged in an optical audio cable when you haven't.

Turns out, that headphone jack is actually a combo jack that has both optical audio and analog audio. There's a little lever in there that detects when you've put a cable in there that's probably stuck. Try fiddling with a toothpick or repeatedly plugging and unplugging.