Tabbing between application windows while using spaces
Have you got an existing screen sharing connection? It is one of the main reasons why switching between applications does not work. Failing that try restarting the dock by opening a Terminal window and enter the following command:

killall Dock