It sounds like you're restoring from an iCloud backup and it's taking longer than expected to finish. Take a look at this excerpt for guidance in this particular situation:
If the restore process takes a long time to finish
Stay connected to a reliable Wi-Fi network and a functional power source until the process finishes. The time it takes to restore from a backup depends on the size of your backup and the speed of your Wi-Fi network.