Using this 3 elements, we can do the following:
Wrap the iron nail with the copper wire, and connect the wire ends to the battery ends.
This way, current will flow through the copper wire, and since the iron nail is wrapped by the wire, an eletromagnetic field will be generated, creating an eletromagnet.
Therefore the correct option is A.