How can I get my Nexus 5 out of a boot loop?

A

AC Question

When I was trying to root my Nexus 5, something happened and it stopped. When I tried to turn it back on it turned on then turned off and it repeats itself. I can enter the bootloader but after 2 seconds it turns off and repeats itself.
Here are the things I've tried
Using the "Restore Nexus 5.zip" file
Spamming the power button.
Charging the phone (Because it was on low battery) but it just reboots and turn off
Any help?