Check your internet connection.
Also if your username is over 16 characters long in game it will not let you play
I suggest having a short username otherwise you'll need a new account.
You could also try to re-install it if no other suggestions by anyone posted works for you.