Obviously, when you formatted your computer ,the sound card driver has gone also and I'm sure that you have no clue about what's the brand/name of your sound card.
Install this software:
http://www.download.com/Everest-Ulti...-10499291.html
-It will tell you what drivers you need for your computer.
-Choose the sound section [I DUNNO WHERE, JUST LOOK FOR IT ]
-Copy the name of the driver or write it down.
-GOOGLE IT , THEN DOWNLOAD IT!
and be careful next time.