“Walk” is the standard word for this action. If you’re not sure, use “walk”.
“To pace” is much less common, and it has several specialized meanings:
1) to walk back and forth when you are nervous,bored, or trying to think of something
“The writer paced in his room, trying to think of the next sentence in his book”
2)(with off) to measure a distance by walking carefully
“We paced off the field, and decided it was about 130 meters long”
There are a few other meanings, but they’re even rarer. In general,use “walk”.