Lag Spikes

Ive been expereince for about 4 months now some outbursts of lag in every game i play they last 5 minutes and come back in an hour for some games they last 5 minutes and come back in about 20 its verry annoying could someone help me with this it never used to happen before with this computer