The electromagnetic force is responsible for the electrostatic attraction and repulsion between charged particles and since the protons have positive charge and electrons have negative charge so the electromagnetic force will be the fundamental force primarily responsible for the attraction between electrons and protons