Laptop will not connect to the internet. Through wifi or Ethernet cable. Thought It was the port or my Ethernet cable was bad so I plugged it into another Ethernet cable that's hooked up to another computer and again that doesn't work. However when I plug it back into the desktop it's working fine
If both your WiFi and Ethernet on the laptop won't work, then you probably have a dead WiFi/Ethernet card.
You can replace the internal one. If the laptop is under warranty then contact the manufacturer as they can then replace it. If it isn't under warranty, then you can replace it yourself or take it to someone who can do the work for you.
Or, you have another option. You can get yourself an external card, which would connect via one of the laptops USB ports, and use that to connect.