Question: how to transfer data from broken iphone to another?
Answer: You can restore from the last iPhone 5 backup from your computer iTunes if available. Otherwise you cannot. If you find a third party company they could possibly replace the screen. That may allow the device to work so that you can enter a passcode & use iTunes to make a backup.