Middle Mouse Button not working in blender
Things to try:

Check that the mouse works and that no other software steals the input
Backup your settings (optional but a good idea)
Reset Blenders factory settings