Internet --> modem --> router or wireless router --> computer
Internet being the connection coming in that connects to your modem. The modem is public facing (the ISP sees it). You connect that to your router or wireless router. From there you can connect to your computer, or to other devices like another switch to give more wired ports.