The router needs to be next to the modem. The router must always have a wired connection to the modem.
The wireless connection will be between the router and the PC. But to set things up is can be easiest if you initially wire between the PC and router, later converting to wireless.
Edit: Grrrr, beaten to it