Electrons are pulled to the nucleus by gravity. The modern atomic model describes the electrons as moving around the nucleus like a cloud, rather than in perfect orbits. I think atoms and protons attract but i'm not 100% sure on that haha. I hope this helps you out :)