HP Printer Troubleshooting Guide | Hp Support
Check that the cables are not loose and restart it. If you print via WiFi, check that it is enabled. Also make sure that the socket or power terminal you connected the power cord to has current and that the wires are not loose else contact HP Printer Troubleshoot.