Simply bring up the main menu by pressing X, then choose the Communicate option. From here, choose to play with friends, then select either the Trade or Battle option, depending on what you want to do. You can then choose to connect with another player online, or via a wireless LAN connection.