Two objects will attract one another when they have B. Opposite charges ,
which you can found on a magnet
An electric field gets stronger as you : A. Get closer to a charge
This happen because electric field exert influences to sensitive detectors in its surrounding area
hoe this helps