Open Server Management Studio, connect to the server, and go to the Security → Logins item in Object Explorer. Select the login that is blocked and double-click it. The status page should allow you to re-enable the login (uncheck the box "Login blocked").
source
share