In Pokémon Silver, getting past the guard blocking the way in Lavender Town involves catching a Gastly at level 20 or higher. Bring that Ghost-type Pokémon with you into the tower.
Once inside, play the Poké Flute to deal with the Pokémon at the top of the tower and clear the way. It's also worth collecting the items hidden in the market basement, likely in Goldenrod City, before you go. With the right Ghost Pokémon in your party and the Poké Flute in hand, you'll be able to move forward.