Battery terminals and posts are probably dirty. There's a ton of ways to clean them. Here's an example of something you can find at the parts store. A little sandpaper also works.
https://www.amazon.com/STEELMAN-77042-Battery-Terminal-Cleaner/dp/B00MHT1X94