Default how to use Minimal ADB and Fastboot


My phone respnds to minimal adb and fastboot and has factory recovery but hangs at 49%. how do I flash everything back to phone to get it working again, can t get into twrp , only have fats boot and factory recovery screen access. I am new to android and need full guide and what I type into fastboot and what I need aswell