I recently purchased a 2001 Mazda Protege from a soldier who was being deployed. He was formerly employed as a mechanic for Mazda so he worked on this car as needed. He informed me that he had recently replaced the timing belt and spark plugs. A month after I bought the car I went to start it. It cranked but would not fire. A few hours later it started just fine. It did this again two weeks later but started up after a couple of tries. Two days later my CEL was on. My cousin (a mechanic) checked it out and the diagnostic showed a random misfire. He found nothing else wrong so I picked up the car and took it home. A week later my car cranked but wouldn't start. My neighbor (a mechanic) looked at it but saw nothing unusual. It started just fine for him but did misfire while it was idling. Two days later it did the same as before but after letting it sit for a few hours it started weak but ran fine. I took it to another mechanic and the car behaved for two days. Almost a week later, I was driving home when the car hesitated and lost speed I tried to accelerate and got nothing then it just came back. The whole thing lasted about three seconds. What's going on?