Micro SD card not recognised

So i got a 128GB Micro SD card for my HTC One M8. I popped it out and suddenly it doesn't work anymore. This has happened before but i had to format the card for it to work. I have some awesome photos on it but are there any way to get them back? Thanks.

Had this happen with a S4 and never could get the pc to read it or the phone. Good luck and report back if you get it please

It wasn't looking like it was going to work so i formatted it and it's now working again.