The printer's software might experience a glitch that creates trouble while connecting to your PC. Also, loose cables and broken wires can be a probable reason for the same. You need to duly check the hardware condition of the device before connecting it with a computer.