Did you check the ground wire between the car body and the engine, they can corrode and brake, then battery won’t charge.
open