The game you're thinking of is Sonic Adventure 2: Battle.
The egg-raising part is part of the Chao system—a sort of extra side mode where you can raise, race, and battle your Chao creatures. It's a beloved feature, but it isn't the main storyline of the game itself.