Unplug and replug the mouse 3 or 4 times. Kind of sounds like a dirty connection.

That does tend to clean the contacts and has worked for me when the mouse locks up.