Dodge Ram problem
Go to a local auto parts store like Autozone and they will usually pull codes for free. Post up the codes if thier are any. I'm thinking the battery posts/cables need a good cleaning with baking soda and water, then grease them with white lithium. Even if they look clean, they can build up a transparent layer of insulating corrosion.