To get distracted and lose track of something (one's train of thought, a conversation).
To speak in a disorganized or desultory manner; to babble or prattle.
To wander or walk aimlessly.