Chosen Solution
I’ve had my iPhone since of May 2017 . Out of no where it wouldn’t charge , for hours I was going through iPhone chargers to see if they would work and wouldn’t . It would charge but it wouldn’t turn on . U would leave it charging overnight & sometimes it would turn on with only 3% battery or it wouldn’t turn on at all . It showed it was charging but wouldn’t turn on . So I go & buy a new cheap charger from a gas station & with good luck it turned on , but the only problem was that the battery would die so quickly . In at least an hou it would go from 100% to 20% . I didn’t mind as much because I was happy that it was at least charging . So about a week later I took my phone off he charger to take it with me some where & when I came back to charge it , it would say “ access not supported “ or something like that . Then I was back in the same situation I was in . So at this point I just waned a new phone . I tried to go to my icloud on my computer to see if I could recover my data but now apparently they send some code to the iPhone that I need or I can’t get in . I couldn’t see the code because obviously my phone wouldn’t turn on . So is there a way Apple could restore my data ?
Because you have an iCloud backup, you should be able to recover the data to a new phone by restoring a previous backup. If you would prefer to keep your phone, then the only way to get the data is to “fix” the phone. It sounds to me like you have a dead battery. That would be the first thing to try anyway so I would encourage you to take a look at this guide. Replacing the battery is pretty straightforward.