Can't connect to internet through Wi-Fi or network cable?

I have a Sony vaio and for few month it does not connect to my home Wi-Fi, Since i have that problem i Installed new windows and deleted everything from the hard-disk and I changed the modem and router,

The computer will connect if I'm using my Iphone hotspot but it will not connect to my home network it keep tells me that the password is incorrect when I'm 110% sure i do the right password!

You need to install the firmware for the networking devices in the laptop for specific the model. Generally this is found by doing a google search or by downloading it from the manufacturers website.

If the invalid password is the problem then it is not the laptop… It is the password.

If the internet is not working while connected to network cable then the device drivers are missing.

The password is not required for network cable usage in most cases of private homes.