Why will my iPhone 4S only work with a power supply?

Recently my iPhone will only operate when being charged. Once I take it off charge, the phone lasts for 1-2minutes (it is fully charged) and switches off. Then I try turn turn it back on, and it says it needs charging.
please could someone give a reason for why this is and also how to tackle it.
I will also give points for answers!

You may need to change the battery

The battery is obviously shot. Rechargeable batteries only last for so many charge cycles, and yours is at the end of its life. If your phone had an electrical problem, it would turn off immediately upon unplugging it rather than a minute or two later (though the battery may die the rest of the way and cause that same behavior soon.) The only solution is to take it to Apple and have them replace the battery, or order a third-party battery replacement toolkit and do it yourself (cheaper, but not recommended unless you're comfortable taking apart and putting back together small electronics), or get a new phone. Considering how much it costs to replace the battery, if your phone is eligible for an upgrade with your wireless provider, you should probably just upgrade to a 5s.

  • Will this work with my 500w PSU (Power Supply Unit)? Anyone know if a 500w PSU will be safe with my new GPU? Specs; Motherboard: Asus M5A78L-M LX V2 CPU: AMD FX-4100 Quad core running 3.6ghz New GPU: AMD HD Radeon 7870 2gb GHZ edition Devices connected; 3 USBs (MOUSE, KEYBOARD, WEBCAM & Maybe iPhone) 1 HDD 0 CD 0 DVD 0 Blue Rays
  • What is a good portable power supply for a pc? I have a Mac mini and a monitor, along with an iphone and speakers, what would be a good power generator/rechargeable box that has 4 female ends for wall outlets. I need something like this for trips
  • Supply and demand curve (economics)? Can I make a graph where D1 and S1 are the iPhone 4s and D2 and S2 are the iPhone 5 and I can compare the two on one graph like that?
  • IPhone X Limited Supply on a plan? I'm looking to get an iPhone X on a plan with Telus and was hoping to hold off another month. I have come to understand it is limited supply, but will I be able to get it on a plan still next month? Or is it only available on a plan now with preorder?