Sony Xperia S - suddenly can't connect to PC anymore (it was working before)
In the end, it turned out it was working for the original USB cable, while the generic USB cable did not allow data connection, only charging.

For the original cable, the problem disappeared on its own, and I don't know what caused it, or what caused it to disappear.