msbetty, At one time I had an HP..
At various times one of them would exhibit the same behavior you described.
I uninstalled all HP printer software and drivers and reinstalled. It did not help to correct the problem.
One evening I had to print out a very important document. The printer chose that time to balk and not print it.
I gave up and decided to deal with it later and turned off the computer.
The next morning I turned the computer on, it booted up and as soon as I got to my desktop the printer started working and the document I needed got printed.
Wondering if that might work for you until you get your issue sorted out. It was a pain to have to restart when it did not work but at the time was the only thing I could do. Never did figure out why it sometimes worked and other times did not.
One of the happiest days of my life was the day the HP printer died and I bought a Canon which has given me no problems.