Did you try plugging the microsd into your computer to see if it was corrupted? If you haven't try that. If it's good on your computer, then try blowing some air onto the microsd/the slot where the microsd card goes. Also blow air onto the 3ds cartridge slot and the metal part on the DSTWO. If that doesn't work, the problem may be more serious.