Are you talking about 1 PC? If you have a computer wired and also use wireless without disabling the other, it is likely to cause an IP conflict. Use one at a time and disable the other before using the other (in network connections right click disable).
To fix go to a command prompt and type
If this doesn't work maybe the TCP/IP stack is corrupted and can be fixed with click here but try the IPCONFIG comands first.