10.9 Mavericks will not run on a 2022 Mac.
It will run on Macs below
OS X Mavericks - Technical Specifications
up to October 15, 2014. All newer Macs can't run Mavericks.
Incidentally the minimum requirements for El Capitan are the same as Mavericks.
That said, Apple menu -> About This Mac will tell you what you are actually running.
The System Report or Profile in the About This Mac window will give you a Machine ID such as iMac x,y.
The x,y value will help us identify which Mac you have if the About This Mac does not.
Apple menu -> System Preferences -> Network will let you determine if you have ethernet or WiFi connectivity. You may need to adapt to ethernet from thunderbolt if present to connect to your modem if the above port is not present.
WiFi connectivity also known as Airport connectivity may fail on 5 Ghz but work on 2.4 Ghz. This can be the case if your WiFi adapter is another room. Check there is send/receive data in the WiFi router happening. If the lights are off, you may need to power cycle the modem first and the WiFi router once the modem shows it has internet. Sometimes the modem and WiFi are the same box.
You can also sometimes make your cell phone into a WiFi hotspot. Let us know if you have an Android or iPhone and we can help you set that up if needed.
Under advanced settings in the Network panel, if the connection is active but only giving you a 169.x.x.x internet address the DHCP lease may need to be renewed. Turn off all proxies, and VPN. The only reason to use VPN is if you are connecting to a school or corporate network where they control the network traffic. In which case, their technical support needs to be contacted to ensure your connectivity is successful.