printer problems are case by case issues, since there's such a myriad of things that can be happening.
As a general procedure, make sure you have the latest drivers available for you printer.
Right click "my computer" select Properties, in the next dialog window select the "Hardware" tab and click the button that says "Device Manager." Make sure that you don't have any yellow exclamation points or red question marks next to any devices.
try HP solution center
It's hard to say what exactly is wrong
what program are you typically using to print? does it happen with one program only or fails to print no matter the source?