First step is to reset the modem and the router.
If it's fixed, congratulations !
Second step is to bypass your wireless connection if that's what you use,
and use a direct wired connection to the modem to rule out some causes.
If it's fine connected directly then your issue lies in all the related wireless crap.
Reset the router? ... upgrade the routers firmware? ... Reinstall the wireless receiver?
... Update wireless receiver's drivers?
If a direct connection doesn't resolve the issue, then you likely have an issue with
either your PC or you ISP.
First thing to do on your PC is to clean it of any STD's it may have.
I highly recommend MalwareBytes and AdwCleaner (both free). Even if this
is not the problem, it is always good to do.
Secondly, you can do some tests of your own to determine if the cause now
lies in the hands of your ISP.
Doing a ping to a website as suggested is a good start. Do multiple ping tests
like that since you don't always have a problem. Depending on your proximity
to that location, you should be well below 100 ms, and more likely seeing pings
of 30-60 ms.
If you see a problem in pings, you should really do a "tracert" prompt thru
the CMD box to that same site (tracert www.google.com) and see each step/hop
you take to get there, and where exactly the problem begins. Normally, if your
ping goes to snot within the first few hops, it is likely your ISP. Call them and they
can run some diagnostics. If it gets nasty in the latter part of the trip, the issue is
with the routing your ISP uses to get to those locations, which they may or may not
do anything about.