Question: how to get my iphone to connect to my computer?
Answer: Disconnect iPhone and restart the PC.
Restart the iPhone.
Ensure that Windows is up to date.
Close all running programs on the PC.
Temporarily disable security software (antivirus and firewall). ... 
Check the USB cable and confirm that it is not damaged.
Use an original Apple cable. ... 
Try using another USB cable.