If the iPhone can be unlocked with Touch ID it can connect with iTunes and a backup can be made. If the Genius Bar at an Apple Store can diagnose the problem a repair may be possible or, if not, a replacement iPhone can be set up from the latest iTunes backup.