Thank you so much for responding and i apologize for being unclear... Heres a complete detail order of events.
Around september 2015 i jailbroke the phone (pangu)
About three weeks ago the screen cracked
The next day or so I got the screen replaced by a vendor in the mall.
I noticed very soon after that my phone would die very early so i went searching online for answers.
Some video on youtube told me to restart the phone by simutaniously holding the power and home button.. That put me in a reboot loop 5 days ago.
I went to sleep thinking the phone would go through a battle overnight trying t restart... No luck
The next morning i went back online and tried to boot it using the DFU mode process..
That process has me stuck at the "plug in to itunes" screen.
When i plug it in to itunes, it tells me the phone needs to be restored. When I restore it, it says an unknown error has occured or error 51 sometimes.
I called apple and they said error 51 could possibly be because the restore process doesnt recognize the non-apple screen.
Hope this was a bit more clear
Some clarification here…
1. Your friend jailbroke your iPhone. Got that part.
2. You cracked your screen. OK. When?
3. Your phone started dying, so you restarted it.
This is where it gets hazy. When did you restart it? Today, last week, yesterday? Did all of this happen today? Is it abnormal for you to restart your phone? Why would your phone be in a loop just by restarting if it was 'great for a while and you had no issues'?
Or do you mean you did an Erase All Contents and Settings from the phone itself? If so, then a bootloop would be what happens when you do this on a jailbroken iPhone.
4. You took some measures and tips online to get out of the loop. What measures and tips? And by taking those measures and tips it implies that you have some idea as to what caused the bootloop instead of just a 'restart'.
5. So you tried to restore it and get all types of errors. That either indicates hardware failure, the user trying to restore to a version of iOS that is no longer signed or the user messing around with the hosts file.
6. Apple woudn't tell you what they told you if they didn't have a good reason. Did you in fact at some point replace the screen? Because it you did I'm not surprised Apple won't help you. They know what is OEM and what is not and they deny warranty if they find non-OEM parts.
It would be nice to have a few clear answers, but assuming you did an Erase All Contents and Settings then the answer is to put your phone in DFU mode and restore from iTunes. You have to upgrade and restore. There is no staying on the current version of iOS and you've lost your jailbreak.