Impossible via normal gameplay. Elekid (Gen II) is not in Pearl's Pokédex and cannot be bred or found wild.
Only methods:
Inserting a FireRed cartridge does not unlock Elekid in Pearl—that only affects the FireRed game itself.