I have htc desire s and it can not access sd card which worked in it for a long time
It might be due to a problem with the seating of the SD card in the slot. If you're sure it's firmly seated in the slot and the problem still exists, then your slot may be broken, per se.

Send it in for repair.