Does the sound work with the back headphone ports? If it does, then that means you haven't got the front audio ports connected properly to the motherboard. Make sure it's the "HD Audio" that's connected, and in the BIOS "HD Audio" is selected instead of "AC'97".