Plug your memory card/card reader in PC USB port. Boot the PC into safe mode. try formatting there. This method usually works for many people.
If not, try connecting and formatting in another PC/laptop. If still can't be formatted, then it is probably failed card.