Chosen Solution
My iPhone 5 turns itself off even with a charged battery.
Piero, Generally when the phone turns itself off when it is still charged it is caused by a faulty battery. You can follow this guide to replace it. How to replace your iPhone 5 battery