No sound on iMac

I have the same mac,

Go to settings, Sound, select profile "ANALOG STEREO 4.0"

It shall work