These symptoms point to either a clogged/contaminated print head, or a faulty print head (or the logic board that controls it).
You can try going into the setup/maintenance menu on the machine and running the “clean print head” function repeatedly, up to 5 times total, testing after each.
If it still doesn’t print anything, you’ll need to do a manual cleaning as a next step.
I have to caution you up front though that the manual cleaning process is messy and time consuming. It also has a low chance of success, if you see no improvement at all from the automated cleaning. It is most likely a hardware failure (bad head) which the cleaning can’t fix, as printheads are a wear item and do fail with time/use.
If the printer is less than a year old it would be under warranty still and covered by HP.
If not, then, it’s probably time for a new printer. These printers are designed for a maximum 3 year service life, but this is one of many hp models that have high failure rates and often don't even last a year or two. While it can be fixed, it is not worthwhile to do so. You would have to, at a minimum, replace the printhead, which costs about $85; if the logic board is bad you’re looking at $200-250. For $80-100 you can replace the entire machine with a brand new model, with current technology and a fresh warranty, which makes more sense than buying the new part for an older printer.
That said, it doesn’t hurt to try, if you wish. Let me know how the built in cleaning function works, and I’ll guide you through the manual steps next, or I can recommend replacement options if you prefer.
Best regards, ***** ***** for the news,