Getting to the level select in Sonic Classic Collection works differently for each included game:
Sonic the Hedgehog: After "Sonic Team Presents" appears at the start, press Up, Down, Left, Right, Y + Start to choose any level.
Sonic 2: There's no level select for this one.
Sonic the Hedgehog 3: At the drum beat, quickly press Up, Up, Down, Down, Up, Up, Up. Go down twice and you'll see the sound test.
Sonic and Knuckles: Start Mushroom Hill Zone as Sonic and head right to the first pull-up machine. Jump and hang on it, then press Left, Left, Left, Right, Right, Right, Up, Up, Up. Then get a game over, hold Y + Start at the character select, and choose a level (the numbers correspond to Sonic, Tails, and Knuckles).
That covers the level select methods across the collection.