IPhone boots and then shuts off?

I dropped my phone when it was dead and now it won't completely turn on. It boots and goes to the apple logo but then goes blank and repeats. It's been about an hour of it doing this.

You'll have to restore it completely.
First put it in recovery mode by holding down the lock + home button for ~10 seconds. Connect it to your computer and iTunes will restore it for you.