1.
Check port is open or not by using the below
command
netstat –aon
2. Go to SQL Server
Configuration Manager->SQL Server Network Configuration->Protocols, check
that named pipes and tcp/ip are enabled.
3.
Restart your machine