For some reason Windows 7 is pretty poor with it's audio driver support. As BRYNIT says,make sure all motherboard drivers are installed. What make/model of motherboard are you using? Do you have the motherboard driver disk? If not go to the mobo makers website and download all drivers and burn them to CD.
I have more problems getting the sound to work on PC's that I have to reinstall Windows on than any other component.