A couple of things to try...
USB connections are notorious for failing. Try wiggling (yes, wiggling) the connection into the computer. Try a different USB socket on the computer
Is the camera battery fully charged?
If none of this works, try a system restore to when it was ok last in case something in the software is corrupted