The "best" Sonic game is largely a matter of taste, but a few favorites come up again and again. Classic 2D entries like Sonic the Hedgehog, Sonic 2, Sonic CD, and especially Sonic 3 (and Sonic & Knuckles) are frequently praised for tight platforming.
On the 3D side, many fans point to Sonic Adventure 2 for its sheer amount of content: two intertwining stories, action stages with multiple missions, six playable characters, a memorable soundtrack, and unlockables like the Chao Garden and a racing mini-game.
Others simply champion newer titles like Sonic Colors. In the end, whether you love classic speed or 3D adventure, there's a Sonic game that will feel like the best to you.