Question: how to connect iphone to computer when screen is broken?
Answer: Download and install ApowerRescue on your computer. ... 
Open the application then connect the iOS device to the PC using a lightning cable.
After connecting iPhone to PC via lightning cable, select all folders/files you wish to recover/transfer and click “Start scan” for the tool to analyze the data.