To only one router or to any router you connect to?
If it's only one router, it's probably something with the router - no more DHCP leases available, the router set up wrong, etc. If it's all routers, it's a problem with the phone. So we have to know which one to look at.