Try restarting your computer and see if that works, if not than try resetting your cable modem.

Sometimes that does the trick, I think the connection thing is a common bug with Steam's network.