You have to keep it in your party, and defeat a Pokemon trainer with Aegislash. After 10 battles you will then be able to evolve Doublade into an Aegislash.