My iphone won't turn on, the apple logo keeps coming on and then off?

My phone randomly wouldn't come back on, so when I got home I connected it to a USB, ever since all that comes up is the apple logo and then it goes off again and keeps repeating, it won't switch on and I don't know why, please help

Added (1). Also my top right button, used to unlock the phone is also broken

Your in bootloop

do an itunes restoral… If you can't or it doesn't fix the issue, call Applecare at 800myiphone. If you bought Applecare or insurance, file a claim for a new iphone

or…

get $$$$$$$$$ and get a new iphone

your choice

Have you plugged the phone into the computer? Just to see if the computer recognises the phone?
If it does then i would suggest you do a full restore of the phone as it seems to be in a boot loop and if the operating system is restored it may well do the trick.

Let the battery drain until battery died and try charging and turn it on. If that does'nt work. If you jailbroke your iphone then its bricked, if not sounds like hardware failure take to apple. If you have warranry they can fix it or replaced with new iphone, if not you have to pay for it.