It sounds to me as if your router has stopped working.
since you can connect directly to the modem you know that your internet connection is fine.
I would try a hard reset of your modem and reset it up.
If this does not work it sounds as though it is time for a new router.
If you had another router available to test that would be great.