The brain moves by thoughts.
The brain comes before thoughts. Thoughts came to be because the brain operated.
The brain does everything, including seeing, hearing, and thinking. The body simply acts and functions being controlled by the brain.
Even if your eyes are closed and ears are plugged, since brain nerves operate from within the brain, you are reminded of what you previously saw or heard through thinking, and thoughts keep going.
Since thoughts keep running even when the brain is resting, the brain ends up operating with those thoughts.