Chosen Solution
A few weeks ago, I’ve noticed that my iphone 5 screen was coming out and was nothing happening after that until this week, my phone keeps restarting/rebooting whenever on i was on an app. Its only good when im charging it.
It sounds like the battery is swelling. Put in a new battery and you should be fine.