Team Metal Sonic is not part of the standard playable roster in Sonic Heroes. The four default teams are Sonic, Dark, Rose and Chaotix.
What the game does have is a set of unlock-related secrets and difficulty modifiers, and cheat listings from sites like IGN will walk you through whatever the current version supports. Results vary by platform, so check that the guide matches the release you own.
If playing as Metal Sonic specifically is the goal, later titles in the series give you more direct options, and the fan modding community has produced character swaps for the PC version.
Be cautious with downloads claiming to be cheats or mods. Executables from unofficial sources are a common malware vector, especially for older games with active search traffic.