How exactly did you "remove all the content"? Here are the two options to do what you appear to be doing: How to reinstall macOS - Apple Support. and How to create a bootable installer for macOS - Apple Support
If you mean a "factory reset", that involves a bootable flash drive; the second option.
How you got to where you are now and what to do next is at least somewhat dependent on what you've done already.
I've never had an instance of no connection to internet possible as connecting is part and parcel of the procedure. The Mac is undoubtedly WiFi capable. But it does have ports and if you have no wireless, you'll have to use an ethernet adapter to connect to one of your Mac's port.