Without more info, there's no way to tell. It could be the fuel pump, or a loose wire, or a worn muffler bearing for all we know. You can try swapping out the fuel pump, but if that's not it, you'll have to either try some other part, or just take it to a mechanic and have it fixed by a professional. That might be cheaper in the long run any way.