Again? Is it doing it a lot? Just lately? Hmmmmm.... If you get a catastrophic failure like this, you need to find out why it happened. A virus, hard drive failure, some other hardware failure?
Here's what I would do, in order, before I gave up & decided to start again.
1. Switch off, remove power lead, open computer case, check the hard drive IDE or SATA cables for correct and good connection at each drive and where they plug into the motherboard. Also hard drive power connector.
2. If that did not work, if you have a floppy drive, make or get a
boot floppy (Look it up on Google) that is the right one for your brand of Windows and try the steps on this page:-
http://www.computerhope.com/issues/ch000181.htm
Or another page that you found by typing
Missing operating system into Google.
Then, last of all,
3. If you have a bootable Windows XP install CD then study the instructions for a Windows XP
repair install on a page such as
http://helpdesk.its.uiowa.edu/windows/instructions/repairinstall.htm
Or another page that you find when you type
xp repair install into Google.
If you did this last one, (Or if you did a brand new install) you would need to get your Windows updates, service packs, etc up to date before you connect to the internet, or you might well get a worm, and then you'd be back where you started... You need Service Pack 2 at least.