You can turn off the phone and remove the card and re-install it back it. It may have come loose. If it happens too frequently, another possibility is the SD card failing.
You can also buy a card reader if you want to backup any data (if it the SD card still works) on your computer.