Chosen Solution

I am getting no sound coming from my internal speakers on my MacBook Pro Retina A1398. The speaker icon on menu bar is greyed out

. And under sound preferences the only two output sources are the Digital Output and Apple TV.
I also get no sound when I plug in headphones to the headphone jack port on the left side of the computer. At random times there is a red light that shines out of the headphone jack port which I guess is the digital/optical output? I watched one video saying it was probably the headphone jack? Please if anyone has any experience with this problem please chime in. Thank you in advance!

The red light from the headphone jack port shouldn’t be there, that may indicate it’s in use because the pin it’s stuck as if the jack was inside. You should try getting yourself some fine tweezers or something alike and an electronics lubricant and try get the pin that closes contacts when you insert the jack back into its right position. If you have patience you may find an exploded view of the port I can’t manage to find right now.

To add to @arbaman answer here’s a image of the switches in the jack for reference

Blow hard into the audio out port with the red light, this failing insert a plug several times to see it you can get it to disconnect.