Just as an explanation:
You have an ISP.
The ISP communicates with your modem and connects you to the wider web.
Your modem communicates with your router.
Your router communicates with your devices.
These are all links in the chain getting information from the web, to you, and vice versa.
Your devices could be connected to your router, and the modem be completely off or disconnected. Or your devices could be connected to your router and your router to the modem, and the cable going into the modem from the wall could be disconnected. Or all of that could be connected and on and the ISP is down for whatever reason.
All of these would result in the same scenario. Typically, though, it would be a problem with the ISP having some issue either with their cables getting from there. If you contact your ISP, or look at your account online (depending on the service you use) the ISP should be able to tell whether it can "see" your modem. If it cannot, then it the problem is likely between the modem and the ISP somewhere along the line.
Another "tell" would be powering off and on your modem and watching the indicator lights. If the "globe" never lights up (depending on the model), it's not communicating with your ISP.
Contacting your ISP is the thing to do.