Mac Mini 2014 1tb 2.6 I5 Needs New Os

I am stuck in the weird Mac OS high sierra reinstall os loop and I am too amateur to work out how to do it I erased the hard disk but can’t seem to reinstall the Mac OS, I believe this is a very common problem Need to be bought by someone who knows what they are doing to reinstall it! Hence the price

eBay