A modem and router work in tandem to deliver you an internet connection and then grant access to your various devices.
You can set up a new Peloton Bike and Bike+ on your own by stabilizing it, installing the touchscreen, and then connecting it to power and Wi-Fi.