If you have another mac then it may be possible to make another bootable USB flash drive.
The ability to do this would be down to what model and year that mac is.
So can you tell me what mac model and year this 'donor' mac is, click on the top let of the
screen and click on About This Mac.
It would be useful to know the mac model and year of the original mac in question also.
Next you will need to tell me which OS you would like to reinstall on the original mac,
would it be Mac OS X El Capitan 10.11, macOS Sierra 10.12, macOS High Sierra 10.13.
El Capitan and Sierra use a different procedure that requires a mac that can actually run
El Capitan or Sierra. High Sierra downloads the install app directly.
Once you have given me the exact details required then I can give you precise instructions
on downloading the required OS and creating a bootable installer. And then installing the OS
onto the original mac.