Like the other have said, Beldum can only breed with Ditto, and cannot inherit any moves.
You MUST use TM 26 on it if you wish to teach it earthquake.
But...
Take Down is Beldum's ONLY learnable attack, it CAN'T learn any other moves, meaning you will have to evolve it before you can teach it earthquake.
~Aquarelle