I think I would start looking at the manual lever position sensor (MLPS) located on the driver's side, where the linkage enters the transmission. It is the sensor the transmission control module uses to determine which gear it is in. Perhaps the sensor has developed a "dead" spot in it and the control system does not know what gear the tranny is really in. Personally, I do not think it is mechanical because you do not have any evidence of a mechanical failure (tranny pan is clean and the tranny will still operate). I experienced a problem with my F150 that was similar. I would be cruising along and suddenly the truck would feel like it was in neutral. The engine would continue to rev but "no go". Then it would suddenly shift and shock the drive-train and drive like nothing ever happened. Almost felt like the trac-lok in the differential was slipping. Turned-out to be a bad MLPS on mine. Hope this helps!!
Wayne
Wayne