Is it possible to re-install Android OS When the OS is practically useless As the title suggests I'am trying to re-install Andriod but their are several criteria that are preventing me

1. the Android operating system boots but upon passing the lock screen, all core processes such as launcher crashes meaning i'm unable to change settings (Even though sometimes I'm able to change the settings it just reverts back upon Reboot and the settings don't even work properly)

2. ADB does not detect the device (assuming because of USB Debugging)

3. Tried Android safe-mode it does pretty much the same thing as normal mode 

4. Tried a factory reset but it just reboots and shows the Android recovery options instead of erasing 

I'am currently out of options Please help 

Thanks in advance
Short answer is yes!
Long answer:
you can Flash* Android &quot;Stock Rom&quot; for almost any type of android devices, even if the old one isn't loading at all.
as long as the hardware doesn't have any problems
but there is some problems
1. To find the stock Rom:
you will find it with a little search depending on device manufacture
2. To flash it without breaking your device:
this process can be very risky and highly depend on device type
3. you will lose your warranty
safest way is to find a near service center to do it for you
but you can find very useful stuff here:
https://forum.xda-developers.com/