Used Moto X (1st gen) for 3 years. Now it will not connect to my home wifi.
Here are the first things I would try:
Cycle power on Modem and Router.
If that didn’t work “forget” the connection in Settings, WiFi and restart phone. Login from scratch with WiFi credentials.
If that didn’t work check to see if a neighbor has added a router that conflicts with yours: