If you mean Saffron City, you'll first need to head to the Fighting Dojo and defeat each of its trainers. After that, take on the Team Rocket members inside the Silph Co. building. Once both are cleared, the way to the gym will open up.