Hi,
Try to shake the phone. If the phone goes of or restarts then:
Start with cleaning the battery connectors (at the phone and at the battery).
Next, try with another battery (if you have a friend with the same model you can exchange the batteries).
A sure sign that the battery is not good is, if it ends quickly.
Next - someone must to open the phone and check the main board for a damage.
Regards.