Welcome to Android Central! It could be a failing battery, but it could also be a problem with the motherboard. You'd probably have to bring it to a repair shop, but considering that's a 6 year old phone, I don't think the repair cost will be worth it.