There are two basic ways to gain sneak attack. Having advantage on the attack and having an an enemy of the target within 5ft of it.
At level 1 your choices are more limited as hiding is an action until level 2.
A level 1 Bard teammate can cause a few conditions to an enemy that will grant you advantage.
- Glowing(Faerie Fire)
- Prone(Tasha’s Hideous Laughter) attacks within 5ft
- Unconscious (Sleep)
- Blinded(Prestidigitation) to snuff a torch, if you have darkvision but enemy doesn’t.
Those are just some of the conditions that can cause you to gain advantage. Other conditions that cause you to have advantage are; Paralyzed,Petrified,Restrained, and Stunned.
The Help action can also grant you advantage. Though at level 1 and 2 the Help action would most also involve having a teammate within 5ft.
I have glossed over having an enemy of the target within 5ft as the accepted answer does an excellent job of explaining.
Hiding can grant you advantage but it is dependent on a stealth check and having the proper terrain/objects to hide behind. Certain Races can make hiding in battle a lot easier. The Lightfoot Halfling Rogue can attempt to hide behind a medium sized teammate. The Wood Elf can attempt to hide while only lightly obscured.
In my last campaign I was a Rogue (Scout) and spent most of my time trying to gain advantage to increase my chances to hit/crit. Even at level 15, the level we ended the campaign, I was scheming of ways to create advantage.