You have to wait for someone to attack you and hope your team can win the fight which will be controlled by AI at the time. Within the PVP menu you can go to the Defenders tab to set up your team. The higher your PVP rank the more likely you will be attacked.