If your battery is leaking definitely get that replaced. As far as the gear shifter. You need to hit the brake to shift from park. If you are doing that (and you have a good battery in the car) you may be having an issue with the shifter lock mechanism,
Alex
RepairPal Certified shops can diagnose and repair your 2008 Hyundai Azera. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.