You can only trade to other games as long as it is in the same generation. Why? Well the the Pokemon may be or have:
- a new Pokemon
- a new move
- a new item
- Incompatible stats and mechanics
But You can Migrate Pokemon into a newer gen, you can't bring it back though.