Ay
If you are stuck in spectator, you can use retry in the console
(This happens if you connect in a server and you wait 5 minutes in spec without choose team)
If you can't use the chat, retry in the console or restart TF2 or wait for the server to change map or wait until some players left (if you wait until some players left when you are on the server, retry in the console for fix the problem)
(The server sometime can't manage to let you talk because there is too many players)
If you can't change loadout or class, restart your game or your pc if restart your game does not work
(It's because your pc haven't enough memory for change your loadout when there is too much thing in the memory of the PC, restart can clean the memory)