If you want to just erase everything on a Hard Drive so that it appears fresh, empty, and new....a format will do that. Remember though, formatting (and this also applies to just deleting files) only makes your harddrive appear to be fresh and new. It doesnt actually remove the files! Many people think that formatting a hard drive will permanently erase all the data on the drive. This is not true! Formatting and f-disk are only very low level hard drive cleaning functions. Forensic style software tools can read below the re-formatted level on the hard drive and read or recover enormous amounts of data from a used hard drive. Even formatting a hard drive several times will make very little difference.
If you have confidential information that you need to rid of for good, I would recommend a program such as ERASER. This is (best of all) a free program that will erase your data for good. Here's what the website says:
"Eraser is an advanced security tool (for Windows), which allows you to completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns. Works with Windows 95, 98, ME, NT, 2000, XP and DOS.
Eraser is FREE software and its source code is released under GNU General Public License."
If you bought your computer from a store and are looking to put your hard-drive back to it's origional, "store bought" conditions with all of their pre-loaded software... there should be a CD that came with your computer that allows you to do this. Read the manual for your computer if this is the case. All of the instructions should be in there or on the CD itself.
As for the bios, if you're looking to restore it to it's origional conditions...just open the bios settings when your computer first boots up, find the option to "Set Defaults" or something similar, and save it and exit.
If you have flashed the bios before and want to restore it to a previous version (this isn't recommended if the computer works fine)... first, check the version of the current BIOS and compare it to what the origional version was just to make sure you need to. If you dont know what the origional version was, check the website of the motherboard manufacturer to see if they have a version of the origional available for download (I know gigabyte motherboards have this available). You'll need to obtain the origional bios (if it's not the same version as yours) and flash it. Once flashed, open the bios settings and hit "Set Defaults" as described above...and you're good to go.
You're computer now should be good to go!