If it needs an unlock code entered, you can't connect it without unlocking the phone first. Which means fixing the screen. Next time, do backups before the device is damaged, which is the whole point of backups. Trying to get files out after it's damaged is no good.