I would first go into the control panel and check the sound options are all enabled and not muted or disabled then reinstall the sound drivers most likely onboard sound.
if it still fails I would start the pc in safe mode and make sure that its not a running process that is disabling sound.