I cannot tell what is the problem, only make some guesses.
I guess that the printer is an HP OfficeJet 4650 printer-scanner-copier? Scanning works and the printer works when used as a copier but when trying to print a job from the computer you get a paper jam error?
I think there is no hardware error in the printer as the copier function shows that both the scanner and printer works. Instead I think it is a software error. Did the error appear after a Windows update? A Windows update has caused problems before. Or maybe the driver has become corrupted? If so uninstalling and reinstalling the driver and other software might help. If You have another computer you could try if the printer works with that computer.
Are you using aftermarket/remanufactured cartridges and have updated the printer's firmware? HP aggressively uses firmware updates to block the use of aftermarket cartridges.