My sons iphone 6 keeps turning off. Charge is at least 40%

its happened in the past but has come back on, this time will not turn on
Plug it into a computer with iTunes and restore it; hold the home and off button for ten seconds then release the off button but keep holding the home button untill you see the itunes logo.

Original thread: https://forums.imore.com/threads/my-sons-iphone-6-keeps-turning-off-charge-is-at-least-40.372578/