Chosen Solution

My IPhone 4 is acting weird, when I try to turn it on it shows the charge battery screen so I left it in a wall outlet for the night and it still shows the charge battery screen. I left it alone for a day then tried to turn it back on and it worked and it came on with 25 percent battery but it died 5 minutes after I turned it on and it went back to showing the dead battery screen. Basically it turns on when it feel like it and charging it wont work. Also I tried holding the home&power button but it only shows the charge battery screen I really don’t want to waste money on fixing a iPhone 4 someone help please!

Just rollback it , like factory reset . Maybe it got stuck .