The fact the the laptop works fine rules out any connectivity issues between the Internet and the hub. There are a couple of things that could be the cause.
Is the hub's link light for the second PC on? That will show if there is connectivity. If so, skip the next question.
Does the cable to the second PC work when used on the laptop? If so, that means the cable is good. You may have a bad port on the hub.
Is the second PC configured to use DHCP to get an IP address? It must use DHCP to get an IP address from your provider.
How many IP addresses does your provider allow you to have? If you turn off the laptop, does the second PC get access to the Internet? If so, your provider is only allowing one IP address at a time. You'll need a firewall/router to get more than one PC at a time, or pay your ISP more to have multiple computers on the Internet.