Pokemon can not be transferred directly from Gen 4 (SS/Pearl) to Gen 6 (X/OR). You can however transfer from Gen 4 to Gen 5. Then transfer the same Pokemon from Gen 5 to Gen 6 using poke-transfer.
In general the way it works is you can trade within a generation, All Gen 4 games can trade with each other. And transfer up one generation but not back down. All Gen 4 games can transfer up to generation 5 but Gen 5 can not transfer down to Gen 4. Also you can not skip a generation. Gen 4 can not transfer to Gen 6.
To transfer from Gen 4 to Gen 5 you need two DS's and a beaten copy of Black/White/B2/W2. Check out http://pokemondb.net/pokebase/202365/how-do-i-transfer-from-gen-4-to-gen-5-after-may-2014
Only Pokemon from the Generation 5 games(B/W/B2/W2) can be trasferred to X/Y/OR/AS through Poke Bank