That all depends on what you mean by "can't detect".
If you did not format or write to the drive there is the potential for recovery using file recovery software. When formatted FAT32, USB drives often lose their file system very easily when they are removed quickly without unmounting (ejecting) them.
If by can't detect you mean the drive shows up as an "Unknown USB device" in Windows, then your device's firmware has somehow been corrupted and you have bigger problems.
It can also happen that if you carry a USB drive around in your pocket, it gets more dust than usual on the pins. Try cleaning the pins with an old toothbrush and see if that helps.