There is no Global Trade Station (GTS) in Pokémon HeartGold or SoulSilver. The GTS was introduced in Pokémon Diamond and Pearl (Generation IV), which were released before HeartGold and SoulSilver (Generation IV remakes). However, the GTS functionality in Diamond/Pearl/Platinum uses the Nintendo Wi-Fi Connection service, which was discontinued in 2014.
To trade in these games, you must use:
For online trading today, you must transfer Pokémon to a modern game (Gen VI+) with active online services.