You can try reformatting the card with SD Card Formatter from sdcard.org. A full overwrite format will restore the card and also find and hopefully mark any bad cells. It does take quite a while. Even a quick format with that utility can solve some problems when a card gets corrupted. If the card is dying/near the end of its life, nothing can save it though.