Make sure that your tcp/ip properties in SQL server are set properly to enabled on the port:
SQL Server Configuration Manager
SQL Server Network Configuration
Protocols for <name of sql server>
TCP/IP --> Properties
IP Addresses
Must show Enabled for the IP address of the server and TCP Dynamic Ports = 0
Restart SQL service