Galaxy S4 Not booting up
Most probably the issue is with the battery. The battery can't provide stable power output and that's why the phone can't continue after the samsung logo.
You should try a new battery. If still the issue persist, let me know.