Access the PvP Battle League from the Battle menu. Battle other trainers in real-time matches to earn rewards, which may include Pokecoins.