Are you trying to connect using wi-fi only?
After a factory reset I`d suggest using a wired ethernet connection initially and see how it goes.
If you only use wi-fi to connect then there might be a problem.
Do you have a device that will connect to the router using an RJ45 cable?
Which modem are you using.