If your IPhone suddenly dies and cannot power on whether you plug the charger on or not. Try the fix bellow.
1. Snap the “silent button” above the volume buttons back and forth few times
2. Press the “home” and “sleep” buttons at the same time. It should power on if the battery have charges.