Connect the SD card to a reader connected to your computer and use some data recovery software like Recuva to see if you can recover any files. Failing that, the data is gone. This will only work for things that were on the SD card, it will not work for the internal memory of the Galaxy device.