No—you can't form a team of Metal Sonic, Eggman, and Chaos in Sonic Heroes. Those characters are villains rather than the heroes and main playable characters the game is built around, so they aren't available as a team. (The claim about a "free talking cucumber" was just a joke—there's no such reward.)