Welcome to HP Forums,
This is a great place to get support, find answers and tips,
Thank you for posting your query, I'll be more than glad to help you out :)
As I understand, your printer does not connect through USB or Wireless,
Don't worry as I'll be glad to help, however, to provide an accurate resolution, I need a few more details:
What is the operating system on PC?
When was the last time it worked fine?
Were there any hardware/software changes made?
Have you tried any troubleshooting steps?
What is the exact error message while trying to connect to Wi-Fi?
Let's try these steps to resolve the issue:
For Wi-Fi issue:
Perform Restore network defaults:
Restore network settings to default settings
● Press the Wireless button and the Cancel button from the printer control panel at the same time, and then hold them for three seconds.
Once completed, connect the printer to Wi-Fi:
Wireless Printer Setup (Windows): http://bit.ly/2mWeiTJ
Wireless Printer Setup (Mac): http://bit.ly/2MS6HSr
Or you could try these steps:
Changing from a USB to a Wireless Connection: http://bit.ly/2mU7RAx
Once I have the operating system I will help you with USB connectivity troubleshooting,
Keep me posted,
Cheers :)