2002 Dodge Caravan - Died, but why?

2002 grand caravan se started last night drove maybe half a block the engine died tried to restart and after a few tries of no crank it started. I then drove maybe 2-3 more blocks it died while driving coasted to curb and wouldn’t restart had to find place off street to keep it but cant figure out what is wrong. about june or july replaced starter and battery. Help Please

If there is no check engine light it is likely a crank sensor. Spray a little starter fluid into the intake and try and start it. If it fires and then dies a moment later, then it may be a fuel pump. If it doesn’t even try to start, crank sensor.