Have you tried using the Apple Image Capture? Did you make any changes to the printer or the computer recently?
Meanwhile, ensure that the printer is up to date with its firmware and Mac is up to date with its software. If you are unsure you may use the links below to update the printer firmware and Mac software:
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".