Make sure the computer and the printer are connected correctly.
The cause and solution to the problem differ depending on whether or not they are connected.
Checking the Connection Status
The Printer Cannot Connect by USB (Mac OS)