Is anything pugged into the headphone jack such as a headphone or external speakers? If not please describe in detail which system preference you looked at and what you did to troubleshoot it.
Also try a simple SMC reset to see if that helps. iMac SMC and PRAM reset