Dump it and buy a new one, most likely it's got corrupted storage chip & that's not fixable.
Incidentally, SD cards and there like are strictly speaking "storage" devices not memory, hence I've moved your post.
Their generic name "memory cards" is misleading, it's no wonder many people think they are memory.