How to know if the power button is broken on iphone 5?

Whqt i need to do, i dont know if the power button itw broken but i think so because i cant do a hard reset and the bottom works

Aditional:
My iphone 5 is bricked (freeze in the black apple start), it only turn on when i conect it to charge and i need to shut down (on/off button + home button) to do a reset factory but i do that and do t succed

When i conect it to charge i pres home button and display turn on and say low batery but if i press on/off button nothing happens, (when phone its conected to charge) after 5 minutes the phone turns on but stays in the start page (black apple)
Whqt i need to do, i dont know if the power button itw broken but i think so because i cant do a hard reset and the bottom works

if you press and hold the power button, will it turn off.
if you press and hold the power button, will it turn off.
I forgot to mention that my phone is bricked, it only turns on when I connect the charger and I can not turn it off so I do not know if the off button works Already eh tried before what you mention But without success, that's why I would like to know how to cue me ta problem if that button problem or if any part of the cabling system

Thanks for your help 🙂

Original thread: https://forums.imore.com/threads/how-to-know-if-the-power-button-is-broken-on-iphone-5.306562/