jason210 :
can you use a switch so multiple devices can share one modem? or do you have to have a router?
Did the installer leave you a wireless network set up?
If not and this is in the US if this is for a home then you will need a router and router allows one network to communicate with another.
The modem has a cable connector that sends data over the cable then the modem converts the signal into a connection over ethernet(the big phone port looking connector). The big phone port connector is called an RJ45 connector and you use an Ethernet cable to connect to it.
Your ISP has a large network covering a large area called a Wide Area Network(WAN) and at your house you have a small network that is called a Local Area Network(LAN). These boundaries of networks are neccesary for many reasons mainly security but that's another topic.
Your router has ports on the back of them the one port on the back identified as WAN or internet is for your connection to your modem. The other ports labeled LAN or numbered 1,2,3,4, are for your LAN (your home devices).
Your original question asked do you need a router or a switch? The answer is a router.
Your ISP will give the average home user one IP address to use for one device only. That one device can be a computer, any other network device, but most people use a router.
Your router will get one IP address and you can hide/use multiple devices behind it using Network Address Translation (NAT).
If you plugged in a switch directly to a modem then plugged in two devices only one would work, why?
Because the single IP address was given to one device. If the device then shuts down the other would work but not both at the same time...and you might have to get reboot the moden and switch for it to work.....a router makes it simple!
Jason210, this is a basic description of how things work.