Lose the Thread

What does the expression “lose the thread” (of something) mean?

Definition: Be unable to follow someone’s reasoning

Example: I’m sorry. I have a lot on my mind, and I lost the thread of what you were saying. Could you repeat it?