As I know a hub is typically the least expensive, least intelligent, and least complicated of the three.
Switch is a device that filters and forwards packets between LAN segments.
It only operates with the computers on the same LAN. It isnt smart enough to send data out to the internet, or across a WAN. In order to do that, you have to have a router.