Memory card corrupted

I had bought a new memory card 16 gb sdhc micro, when inserted I set it as default device for its storage . But nothing used to get stored in it and then I set it as internal storage. But I lost everything. Now it is corrupted . How to get it repaired

Try formatting it and start over.