Welcome to Justanswer.com, my name is Dustin.I'm sorry to hear about the issue you are having, I will do my best to help you resolve it.
To start with, I need to know the version of mac osx you have on your machine, you can check as follows.Click the apple sign at the top left of your screen, then click about this mac. And then where it says version, send that to me as a reply.
Also, what program is it that you dont have sound with?
Dustin S.Senior Technician and Network Switching Systems Operator / Maintainer.