check the camera then - make sure the socket has not been damaged

but that does not address the faulty SD, no way of knowing then what happened to it; if the computer says it is empty and needs formatting then the index files are faulty/missing - in theory reformatting [the same format as before] only replaces these and will not erase the actual data, but it will remain unreadable

if it were me, and I really needed this data, i would be taking it into a computer shop for an expert to look at; still no guarantee, but the device needs to be examined physically

the more you mess with it the more likely you are to lose whatever may still be there