It sounds like the DHCP server in the router has stopped working.
Try resetting the router. Turn it off, wait 1 minute and then turn it on again. You will need to wait a minute or two for it to get going again.
If this fails then you will need to log in to the router and check its settings.