Do any lights come on when you do this? Even without lights there might be codes. Try and get it scanned.
It could be a lot of things: vacuum, coils, plugs, alternator, etc. Best thing is to scan...