power valve

I forgot to ad that when I install a new set of plugs it runs strong at first, maybe 10 miles or so then starts to have popping through the exhaust when I step on it. What caused the backfire, I reinstalled the distributor 180 out and tried to start it sount like a gun shot. I messed up I know...