Generally, Windows 7 will install drivers
if one is available. In many cases it will install the generic HD Audio Codec sound driver
When you reinstalled did you reinstall the motherboard chipset drivers? (if there are any). In many cases the chipset drivers must be installed before attempting to install device drivers or the device drivers, especially sound, will not install.