Try printing on a computer with an older Windows version, such as Win7 or XP. If it prints there, it's a driver issue. A deskjet 1050 is 10 years old and probably won't ever work with Win8.1 drivers. If the printer does print on an older Windows, that's most likely the problem, so it's probably time to junk it.
If however, it doesn't print, the feed motor or logic board is shot or overloaded. In any case, that's a $200 repair at just about any printer shop, and that printer is maybe worth $20 if that..time to replace it with something new. fyi, brand new HP all-in-ones (print, copy, scan) are available on ebay new in box for under $99.
I would do a midnight run and leave it back on the front porch of the friend who gave it to...