Chosen Solution

I have the camera plugged in for a long time and it still doesn’t charge the battery.

Your battery is probably dead and you need a new one https://www.amazon.com/PowerShot-SD1300-… That link is the battery you would need to but to replace the old one. Hope this helps and good luck fixing!