could be fuel pump, if you don't try to put it in gear will it just die after a few seconds? if so start it up and try giving it gas and seeing if that keeps it alive longer... if it does then its the fuel pump
RepairPal Certified shops can diagnose and repair your 2003 BMW 325Ci. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.