I had a similar issue with my mouse recently, my mouse ended-up being the problem. Look if the USB connection on the PC didn't get loose or the one on the mouse itself. I know there is no "connector" on the mouse, but it doesn't mean the wire soldering cannot fail; you can try moving the wire around to reproduce the problem (that is what happened to me).
I was amazed when I held the mouse and moved the cord. I was able to cause the problem I was having. Even though I suspected the mouse might be the issue, I never thought about a broken (or frayed) wire. Thanks.