There are a number of scenarios that can prevent WordPress from using the REST API. For example, you may not be connected to the internet or have lost connectivity.
Other reasons may be a little more complicated. For instance, you may have accidentally changed the site URL, a WordPress plugin might be causing the issue, or a third-party service may be blocking the API calls.