First, to check your printer for error, you need to check all the wires, cables and USB connection.
Check your hardware of printer first then move to printer software.
If everything seems right, then open printer setting, and click on ‘See what’s printing’. There in the printer queue, you can check if there is an older document that is creating the error.
You can also check the printer status to know about the error. Sometimes because of the corrupt drivers, the printer also shows an error state. SO don’t forget to check the software of the printer.