I've had trouble sometimes with windows not recognizing the mouse when it was moved to a different USB port.
Another thought is to try another mouse in the same and a different port. (I'm assuming this is a USB mouse.) Try using a different port, preferably one on the back of the PC. There may be a cable between a front panel USB and the motherboard that has worked loose. I am always most suspect of front panel ports.