You need to trade at a pokémon centre. It's either the top of the lift or down in the basement..no wait thats for fighting.
I think after the FIRST gym you go to a city and theres a building their and someone gives you a lecture on world trading and you do it there. (cant give specifics sorry)