Most things have been covered very well. Some of the sling's advantages are that it's easy to make and carry. Ammunition can also be readily available. And a sling can outdistance a bow. It all comes down to the projectile and the person who's throwing/shooting it.
Regarding slings against armor, this is very similar to the question of whether an arrow can penetrate armor. It depends on many factors. The type of armor. The size, density, and shape of the projectile. Obviously the speed it's moving. Etc.
There are some things to keep in mind though. A weapon like a bow and arrow is designed for penetration. When most people talk about an arrow vs. armor, they're talking about plate armor (because an arrow won't be stopped by mail, hardened leather, and things like that). When plate armor was becoming more common, weapons such as war hammers and maces also became more common. The reason is because blunt force is a better attack against plate where penetrating weapons don't work as well. Now a glande thrown from a sling can definitely penetrate, but a sling can also do blunt force very well. Larger sized stones thrown from a sling have incredible stopping power. Even if a stone is stopped by a shield, it's still very intimidating. I can attest to that because I've experienced it.
I think a couple of the reasons for slings falling out of favor to weapons such as the bow is the difficulty to use, as Rat Man mentioned. And another thing is if you're going to fight somewhere that doesn't have stones lying around, you need to carry ammunition. And stones or glandes get heavy really quick.
And last thing, if you haven't see it yet, one of our members (Slyngorm) did a great write-up of ranged weapons and comparing them. It's in the Other Primitive Weapons board but here's a link:
https://slinging.org/forum/YaBB.pl?num=1603626991.