No problem, I suppose that you've googled 'jailbreak' now? Without detail about why you were trying to 'flash' the device (and assuming that you didn't find the recovery steps in the first article useful for some reason), I'd assumed that the phone had firmware had become damaged in a way that should not be possible in normal usage.
If you do need further help, please do try to post information about exactly which steps you followed and what exactly you observed.
Also any information was to why you think that the phone's software is corrupted would be useful.
For example instead of reinstalling IOS, you might try resttting thr device to facory settings
Restore your iPhone, iPad, or iPod to factory settings - Apple Support