In HeartGold/SoulSilver, you cannot "walk" Pokémon like in Pokémon GO or Let's Go. However, the "Pokémon Following" (Walking Pokémon) feature lets one party member follow you on-screen:
The Pokémon walks behind you, reacts to interactions, can find items, but doesn't battle. Press "A" → "Stop Following" to recall. It's cosmetic/companion, not a walking mechanic.