A modem and router work in tandem to deliver you an internet connection and then grant access to your various devices.
You can troubleshoot a Roku device that's not connecting to WiFi by checking the internet connection, restarting your Roku, ...