>>551318191. Have speed control. Some sort of method to counter faster threats, such as Sticky Webs, a fast scarfer like Latios or Darkrai, or a priority user like Extreme Speed Dragonite.
2. Pick a lead. At least one Pokemon on your team should be your dedicated opener. Usually your lead will either be a Pokemon that sets up hazards, like Glimmora, Gliscor, H-Samurott, or Ribombee, or a threatening pivot (something that uses U-turn, Volt Switch, or Flip Turn) like Latios, Landorus-T, or Ogerpon. Pivots generally exist to counter the hazard setters and switch out afterwards.
3. Have a win condition. Anything that can guarantee you the win if you get them into position. These are usually Pokemon that require support to function correctly before coming in and cleaning up the game. The prime example is Kingambit, but there are other wincons like Volcarona, Roaring Moon, Dragonite, or Iron Boulder.
4. The rest of your team should be a mix of midgame offensive and defensive pressure. Regenerators are king of this. You can continuously pivot into the likes of Galarian Slowking and pivot out into a fat statstick like Garchomp, Rillaboom, Lando-T, Heatran, Gholdengo, and Darkrai. If you're running a weather team, this is where your strong weather abusers, like Walking Wake or Barraskewda, would go.
That's the basics of teambuilding. I honestly found it a lot easier to teambuild effectively after learning to build "gimmick" teams like Rain or Psychic Terrain. Something with a team strategy that I can build around supporting and abusing.