You didn't say whether it is micro SD card or another type?
Is it full or just corrupted?
If it is an SD card and you don't need the data off of it; try formatting the card and then try to write to it.
If that works; you Fixed it, if not replace the card.
Some other memory cards actually have a write-protect tab or switch to reset.