Hope there is no hardware error displayed by printer (check front panel LED's and refer the following web link)
IF printer is READY to print & able to print test pages from control panel, then try installing Universal print driver PCL 6 using the following HP web link:
I am assuming that the printer is connected using USB, hence you may also try using another USB cable of standard lenth (preferably HP USB cable).