S4 Wont turn on unless removing battery then turns off after 2 seconds
Try booting into recovery mode and seeing if it turns of there

if it doesn't that means your software is corrupt and a factory reset/format cache from recovery mode might fix it 

to access recovery mode hold power button+ volume up + home button at the same time while the device is off