@SK0207, Welcome to the HP Support Community!
To assist you better, what is the error message?
How is the printer connected to the computer? Check the connectivity.
Try making a standalone copy and check if that works. By this, we can conclude if this is a hardware or a driver issue.
Run HP Print and Scan Doctor to diagnose and fix any driver issue
Click here to download the file. Once downloaded, make sure to run the file to start the installation and click on 'Fix printing'.
Hope this helps! Keep me posted.
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!
Have a great day!
KUMAR0307
I am an HP Employee