my car stalls driving down the road,parked and wont start for 15 minutes then on 2000 Dodge Stratus

it will start and drive. sometimes all day sometimes for 5 minutes. if i disconect the battery and reconnect it the car will start without having to wait 15 minutes.what could be causing this?

Asked by for the 2000 Dodge Stratus
which motor??