I have a Ring doorbell 2 hardwired. for some time it doesn’t charge the battery. A few months ago it was charging the battery and I also tried a new battery as well. It gets power and everything looks good in the settings, but it doesn’t charge the battery.
Try taking the battery out and charge it via the USB cable.
If it still fails then you may need to replace your battery.