2001 Nissan Maxima cuts off

maxima starts then cuts off and just tumbles after that. tried spare key same thing happens. sometimes it starts and drives fine but when i swith it of same thing happens.

First thing to do is determine if it is a spark or fuel problem. Ask your shop to do come combo of spark test & fuel pressure test as the problem occurs.