Question: how to connect iphone to computer when it's not recognized?
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.