To get egg moves onto a Pokémon, you'll need a male Pokémon with the egg move you want to breed, and a female of the Pokémon onto which you want to breed the move. In the case of breeding Spikes onto Chespin, you'll need a male Smeargle with Spikes, and a female Chespin (or any of its evolutions).