Iphone 5 wont turn on

hello everyone,
can someone please help me my iphone 5 has shut down and it wont turn on. it was working fine and it shut down and wont start back up. ive plugged it in to my wall charger and nothing happens. i plug it in to my computer and and it says its in recovery mode so i go on and press recover and it starts extrating software and then it says waiting for iphone and it just stays there. my iphone turn on and shows the apple and a loading bar underneath it but it doesnt load i left it over night and nothing happen it still in that frozen stage. ive also tried a hard reset and nothing shows up on the screen. any ideas on what it could be or what i can do to solve this problem?

thanks
Try putting the device in DFU mode for restore purposes, and make sure you're connected to the internet.

How to put your iPhone or iPad into DFU mode | iMore
Throw it really hard against a brick wall. I am obviously joking...do what JustMe'd said. If that doesn't work, take a nice trip to an apple store!
wel the phone is already black screen and it doesnt do anyhting till i plug it into the computer!
wel the phone is already black screen and it doesnt do anyhting till i plug it into the computer!

Dude, just follow the instructions above. Place the device in DFU mode while connected to iTunes. If you think that your device has a malfunctioning retina display then take it to the nearest Apple Store.
When i try this my phone doesnt show anything its just a black screen
alright so i did what you told me and the screen is stuck on the apple and loading bar. and my computer says its waiting for phone! any ideas why its not getting passed this point?
alright so i did what you told me and the screen is stuck on the apple and loading bar. and my computer says its waiting for phone! any ideas why its not getting passed this point?

Give it time. If after an hour (no, it shouldn't take that long), it's not cleared up, try it again. Yes, I am serious! If after that, it still won't load iOS and go to your homescreen, make a Genius Bar appointment with the nearest Apple Store.
alright thanks for the help! i just dont want to drive 4 hours to go to the nearest apple store if it can be fixed at home!

Original thread: https://forums.imore.com/threads/iphone-5-wont-turn-on.261725/