Try typing into a terminal gnome-wm

If that works go to System -> Preferences -> Sessions

scroll through and look for Window Manager and make sure its checked.