Why is it when I put it in drive and try to accelerate it cuts off? on 2005 Dodge Durango

It seems as though it's out of gas and it has a quarter tank of gas. First it would start and when I put my foot on the accelerator it cuts off now it starts and cuts off like it's out of gas....what could it be?

Asked by for the 2005 Dodge Durango