Chosen Solution

My iphone 5 wont work and my home button doesnt work but when i plug it in it just shows the battery then apple logo nd repeats it self what can i do ?

Lift the screen to see if the battery connector has come undone. Here’s the guide that shows you how to disconnect and reconnect the battery. Don’t lift the battery just yet, only check the connector. Next try a known good battery. Otherwise, what is the history of this phone and when did this issue start? Was it after a drop, repair, liquid damage (even if that happened somewhat long ago), or just spontaneously happened?