Power door locks

Power door locks only work on occasion. Switch and button on key work the rear gate all the time. Have not nailed down to what causes them to stop or start working.2005 Grand Caravan, @95,000mi