When you use dhcp and cannot get an IP address, it may means cable is defective or switch problem. So pls check.
Changing to static IP will not solve the connection problem.