Sounds like lost terminal connection (causing the "dead" condition). If one battery is cracked, I wouldn't mess with either of them. Just replace them, as well as the terminals, and cables as necessary. It's pointless to "test" a cracked/leaking battery. Keep it simple and save some effort and damage risk to the electrical/electronic systems. You'll be doing it anyway, probably sooner than later.