To form a team on DC Universe Online, first add the player you want to team up with as a friend. Then send them an invite. You do both by typing "/" followed by the action in the chat box, which you open by pressing Enter.
For example, type "/friend SorcererChaos" to add a friend, or "/invite DarkBones" to invite someone. These controls are for PC; if you're on a PlayStation, you'd need to look up the equivalent steps. That's how you get your team together.