There is no Sonic Heroes 2. The original Sonic Heroes from 2003 is a standalone title and never received a direct sequel.
If you are thinking of the four teams from that game — Team Sonic, Team Dark, Team Rose and Team Chaotix — that is the roster people usually have in mind. Later 3D entries such as Sonic Riders and Sonic the Hedgehog continued the cast without carrying the Heroes name forward.