If it is connected, check whether it is properly plugged in to the end, loosened, or coming off. Because this phenomenon may also be caused by a contact failure, unplug the cable, and then plug it in again.
If you are using a USB hub, connect the printer directly to the computer and check the connection.
Installing the Printer Driver
Check whether the printer driver is installed.
Click [Start] > [Control Panel] > [Hardware and Sound] > [Printer] and check whether your printer is registered (Windows).