The force which is responsible for the attraction between the ball and the wall is electrostatic force.
When we rub the balloon by a synthetic cloth, it gets charged. When it is taken near the wall, it will get attracted towards the uncharged wall because of the electrostatic force which is the force exerted by a charged body on another uncharged body.