Unless the router actually has a hardware error, the usual cause of it being stuck in boot mode is either the configuration register is wrong, ie typically it is set to
0x2101 rather than 0x2102, as it should be to
boot from flash. Or that there is either no IOS image on the flash, or the image that is there is corrupted.
If this is the case, you can TFTP a new IOS image from the boot prompt. Since the boot image does not have support for routing, your tftp server will either have to be on a directly connected segment or you will need to add the 'ip default-gateway' command.
You change the configuration register using the 'config-register 0x2102' command in config mode. Note that you do not need to save this change to NVRAM.