Ответ:

The correct answer is **was not paying / wasn't paying**, **drove**.

**Explanation:** Jim's action of not paying attention was in progress while the other action occurred, hence we use past continuous for the first blank and past simple for the second action.