Each basic Energy card attached to Ditto provides every type of Energy but provides only 1 Energy at a time.
Choose 1 of the Defending Pokémon's attacks. Copy copies that attack. This attack does nothing if Ditto doesn't have the Energy necessary to use that attack. (You must still do anything else required in order to use that attack.)