Why does my iPhone show the Apple logo and then turn off instead of starting up?
If your iPhone shows the Apple logo and then shuts off, start by charging it fully. If the phone is more than two years old, the battery may be worn out and need replacing. If neither of those is the problem, take it to an Apple Store or an Authorized Apple Service Center so they can diagnose it and check the battery.