Do you have a card reader you can use with your pc? At this point, seems like the most important thing to do would be to get them safe and sound.
After that, perhaps, try the card in your phone and format it there before transferring anything you want back on to it.