Question: how to transfer pokemon from x and y to sword?
Answer: Open Pokémon Bank and choose the "Use Pokémon Bank" option. Shift the box on the top screen to the left of Box 1 to get to the Transport Box. From there you can move the Pokémon one by one to your Sun or Moon game. Press X to save and your Pokémon will be transferred.