Some phones have a menu to format the card. However this won't work if the card failed. I read you call them expensive but they do have a limited lifespan and if you can't format it on phone, your PC or anyone's PC the card is gone.
I only use my memory card for music so i dont download anything in it. Recently i downloaded some random app on google play to my phones memory now i cant use my memory card. I tried to delete everything in it but when i try to open it on computer it just makes it freeze. I cant open anything and i cant reset the memory card. I dont think its about my phone or anything but memory cards are expensive and if there is a program i can use to clean it please let me know.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic