how to know if your distributor is going same with the MAF

it hesitates and backfires when i first start driveing but goes away... also it some times dies when im coasting...and also what would be the symptoms of a goiing bad fuelpump.