The USB or the lightning cable you are using to connect iPhone with your PC might be faulty. You need to verify that and try connecting again after restarting the PC ...