Check to ensure the power cords for the modem and/or router are plugged into a functioning power outlet and that the outlet is not connected to a switch that might be turned off.
Is there is a splitter between your wall cable outlet and the modem?.Have you recently moved your device (PC, laptop, iPad, etc)?.Have you moved your cable modem or router to a new cable outlet?.