It could be spark plugs, wires, coils or the distributor. The cam/crank sensors in the distributor could be contributing to the problem but most likely they are not. Try another distributor with other wires and new plugs and see how that goes.

Dan