it keeps cuting out!!!

HI i own a 328i on a 96,over last few weeks my car keeps cutting out!!! I turn the key starts first time but then dies straight out?? also it cuts out when slowing down to junctions or roundabouts?? any help would be most helpful
Pezo328i
Pezo328i