If there are no error messages pointing you to the problem, check to be sure that the printer is still connected, via USB or Ethernet cable or—if a wireless model—that the Wi-Fi is enabled and that you’re connected to the right network.
The printer driver and software needs to be installed on the computer you want to print from. It’s possible that the driver has become corrupted; it should be reinstalled; check the manufacturer’s download page for the latest version.
If it still doesn’t work, check out the troubleshooting section in the printer’s User Manual, and if need be, contact tech support