If you don't have any recovery disk, or the operating system on CD, then you can't do it.
More important is to identify why it crashes on start-up. Do you get any error messages? At what stage does it crash?
If it's due to hardware failure, such as memory or hard drive, then it will be pointless trying to restore to 'factory settings'.