I have a 2005 Jaguar X Type 3.0L..
I have had this issue. I however had been to the automatic car wash earlier. I had driven back home and everything was fine. It sat for an hour or two then I went around the corner.. it began stalling. The engine light came on so I slowly made it to AutoZone. On the way the rpms were jumping. And it wasn’t wanting to shift past 2nd.
I had the codes ran. Apparently, water had gotten inside the engine and the only thing to do was to dry it out by using it. Cautiously. Like in a parking lot super slow but in motion. I did start off on idle and it was better by the next day.