Look at your map for a spot marked "new," located toward the top-middle. That's where you collect the Sun and Moon Medals. To reach Tails, enter the moon door, the nighttime area where Sonic becomes the Werehog, and finish the mission there. Once you do, you'll meet Tails and unlock two more areas to explore.