Sorry to hear about your situation, this should not still be happening, but it unfortunately still is.
Most likely the engine, not the transmission. Based on the fact the engine quit and would not restart and all the 6.2l related problems, the failure is more than likely with the engine. If...