You do not, really. The game assigns you a faction when the match starts and you play the side you are given.
What you can influence is the mode. Campaign and galactic conquest let you follow a faction's story, and instant action lets you choose the map, which shapes who you end up fighting. But within a battle, the assignment stands.