How can I stand on the ground? EM or/and Pauli? There is this famous example about the order difference between gravitational force and EM force. All the gravitational force of Earth is just countered by the electromagnetic force between the electrons on the surface of my feet and the ground.
But also wave-function of electrons(fermions) do not overlap each other due to Pauli exclusion principle.
So which one is the true reason of me not flopping inside the earth forever? Is it only one of them(my guess is Pauli exclusion) or is it both?
 A: I would just like to point out that even if the earth's crust were a liquid, although we couldn't walk on it's surface, the liquid would still be subject to pressure. The only reason one can "fall through" a liquid is because the molecules are moving out of the way; thus, one is not penetrating/passing through the matter, one is simply pushing the matter aside, and it is he fluid nature of the liquid medium that allows this to occur. When you think about the crust in terms of a solid, for in reality it IS a solid, you must hear in mind that atoms are mostly empty space. So, if there is so much empty space, why can't the molecules of your body and the molecules of the earth's surface just sort of slip past one another, allowing you to effectively pass through the matter? Or better still, why can't the Particles of your body actually and physically move through other matter/particles? This is where the PEP comes into play. The electrons as well as protons and neutrons that make up ordinary matter cannot get close enough together to allow this to happen, especially under ordinary circumstances. So yes, the PEP is at work here. Without it, two bits of matter could conceivably occupy the exact same space simultaneously! 
As for the "states of matter portion" that is attributed to EM, because of the electromagnetic bonds involved in the chemical makeup of ordinary matter.
A: You do not fall through the floor because of both Coulomb repulsion and the Pauli exclusion principle.
Electrons are attracted to atomic nuclei and repelled from each other. Pauli is what requires that the electrons sit in different energy states, and not all in the low-lying, centre-biased s shells overlapping the nucleus (see picture). It is largely these higher states, and the delocalised states involved in compounds, which are responsible for the various types of bonding which hold matter together. The mutual repulsion of electrons between atoms holds them apart, and prevents one object passing through another.
Quantum Electro-Dynamics (containing both Pauli and Coulomb effects) is a sufficient theory to explain the interactions underlying all of Chemistry, Materials Science, and Why Things Don't Fall Through Each Other Studies. That includes all crystal behaviour (metals, semiconductors, etc), all organic behaviour (hydrocarbons, polymers), liquids, gasses, plasma.
Pauli doesn't prevent overlapping
Pauli is responsible for a very interesting effect, called energy level splitting. As two hydrogen atoms are brought together, the electron each atom has becomes 'aware' of the other, and the previously equal energy levels split into pairs; now the electrons are either in a symmetric or an anti-symmetric configuration, and these have slightly different energies. This splitting happens all over the place, and is responsible for the band gap that makes semiconductors possible, spin polarisation, etc. It is this symmetry/antisymmetry that Pauli is all about.
Pauli does not preclude two electron's wavefunctions from overlapping; far from it. Electrons overlap all the time. It only precludes two electrons from being in the same state. So if I have a hydrogen atom, I can put two electrons into the s orbital, so their wavefunctions overlap completely, but only if they are in different spin states. 
Matter is not mostly empty
Questions about things falling through things are a natural response to silly offhand remarks about matter being largely empty, with comparisons of an atom to a pea at the length of a football field etc. In reality, it is more reasonable to consider the electrons to each be in one of a number of cloud shapes centred on the nucleus; the lowest energy states actually involve the electron having some probability of being inside the nucleus, and are more likely to be close to the nucleus than further away. So actually the nucleus is surrounded by a dense cloud of electrons (probability-wise), and as two atoms are pushed closer together, these clouds repel each other. 

A: OK, I'll make a complete revision of my original reply since it was quite sloppy.
First, I originally confused two issues that are nevertheless related, I confused stability of matter and the impenetrability of matter.
But, it must be clear that the two questions are related. If I have two chunks of matter of the same type on top of one another, one can't imagine that the explanation for the fact that these chunks don't "fall through" each other would be unrelated to the explanation of why we do not fall through the ground. So, in ultimate analysis, the question is tied to the question of stability of matter.
Now, there are several steps in the problem. To explain the stability of matter, one has to explain why atoms are stable (and before that why nuclei are stable), then one has to explain why aggregates of atoms like solids or liquids can be stable, i.e. why bulk matter is stable. The stability of bulk matter will then serve as the basis to explain why "we can stand on the ground".
Starting with the last step and assuming we already know about the stability of bulk matter, we can imagine that when we exert a pressure on stable bulk matter, we can expect by what it means to be in a stable equilibrium, that the piece of matter would exert an opposing pressure, trying to restore itself to its most stable configuration, provided stresses are not too great. So solving the problem of stability of bulk matter will help us understand what the nature of the restoring force will be.
Now, as is well known, electromagnetic forces can not be the sole explanation. There exist no stable equilibria when there are only electric charges interacting electromagnetically. I won't go through the proof here, but it is accessible to undergraduates, it can be found in the Feynman Lectures, book 2, chapter 5. It's an application of Gauss' law in the static case. The dynamic case only complicates matters in the wrong direction. As we know, accelerated charges radiate energy away, thus an electron orbiting a nucleus would soon fall inward if nothing prevented it, to take the classic example.
Enters Elliott Lieb and his paper 'The stability of matter' that can be easily found online. So, I'll quote a lot from there. It reviews a lot of the results in the field of mathematical physics of the problem of stability of matter.
So what does Lieb essentially say about stability of atoms: that it is a consequence of a principle introduced by Sobolev. Sobolev's inequality states in a mathematically precise form that if one tries to compress the wavefunction anywhere, the kinetic energy will increase. It's a kind of stronger version of the HUP. (Note that at this point, Lieb does not use Pauli's exclusion principle. This is to be expected, take a hydrogen atom, it is stable, since there's only one electron, Pauli's exclusion principle can't be invoked here to explain its stability.)
Then, Lieb goes on to explain the stability of bulk matter by using Sobolev's inequality again. But this time around, he extends the inequality, and takes into account the fact that matter is made up of fermions. So, the Pauli exclusion principle is indeed used. So, again a lower bound for the kinetic energy is found, the interesting thing is that this lower bound is proportional to $N^{5/3}$ where $N$ is the number of fermions. If the particles were not fermions, the proportionality would have been $N$, which we can see by using the previous bound for 1 atom and multiplying by the number of atoms. So it is really the Pauli exclusion principle that contributes the factor $N^{2/3}$.
Lieb goes then to show that this factor is crucial. He uses Thomas-Fermi theory as a relevant approximation of the behaviour of bulk matter to demonstrate this. This is were the analysis becomes very intricate. I have no time to summarize it in more detail. So I'll just say that some theorems about the nature of TF theory are derived, these are then combined in the end to show that the minimum energy or ground state energy of the system is bounded from below. A numerical value for this bound is derived which is −23 Ry/particle, (1 Ry ≈ 13.6 eV).
The important take-away message is though that Fermi statistics or the Pauli exclusion principle is indeed essential to explain the stability of bulk matter.
In Lieb's paper, there is an extra chapter which tackles the question of why matter doesn't explode, instead of implode. The interesting thing is that pure EM is sufficient to answer this question.
A: I've even heard different explanations from my physics profs with Phd-s on this question. My EM teacher said it's EM and my statistical mechanics prof said it was PEP. I think myself it's PEP and EM together but the reason behind EM must be clarifed. What keeps an object solid is molecular and crystal bonds, which involve electrons being stuck in a potential well. In order to break the structure we'd have to break these strong bonds which are oriented because of the shape of the orbitals involved. So this accounts for solidity of normal matter like crystals. That being said it's not what keeps us afloat however, it's is an essential requirement of floating nonetheless. Electrons respond to EM fields, so if materials have EM forces on them there must be an EM field present. But materials are generally electrically neutral and so they neither generate nor respond to EM fields. Some of you may say but when you get down to a very small scale there maybe nonzero fields between electrons. Yes but those fields are compensated by the positive charges, if this wasn't so charges would move, especially in conductors to compensate any field. So what's left really is the PEP to account for us not falling through the floor I think.
A: I wonder if we are not all short-changing the Heisenberg Uncertainty Principle in this discussion. It is certainly the HUP, not electrostatics or Pauli, that stops the hydrogen atom from collapsing. And it is obviously false to say that in the absence of Pauli, all the electrons in bigger atoms would crowd into exactly the same wave Hydrogen ground state wave function...because the Helium atom certainly doesn't do that, and Pauli places no restrictions on the wave function there. In the absence of Pauli, multiple electron atoms would be spherically symmetric but the electron distribution within would still show some structure, as does Helium. (Although it is arguable that the structure is simply an artifact of the electron-basis-state representation, and that in the density matrix representation the charge distribution is spherically symmetric. But that's another story.)
What prevents two hydrogen atoms from passing right through each other? They could if the electron from A could neutralize the proton from B. And it is not Pauli that stops them from doing so, nor electrostatics which positively wants to neutralize the charges, but simply Heisenberg that stops them from doing so.
A: Ok, I'll bite the bullet and get the downvotes, but my answer is EM.
Why? Well, you can't stand on water and you can't stand on air. The Pauli principle applies to those cases but doesn't make matter solid. It's the (fundamentally) cristalline structure that makes an object solid enought to stand on. This is yes, related to QM (what is not) but certainly EM in nature.

Edit:
Marek asked me to specify a bit more and add some meat to my answer. Fair enough.
The question itself is not a well-posed one. Electro-magnetism is quantum mechanical in nature, and it's basically impossible to speak about atoms without speaking about Pauli's principle and EM. Actually one could say that Pauli's principle is at the basis of chemistry, together with EM. So in this sense, what is left to answer? There can't be an atom without either of the two. In this sense the answer is BOTH.
I choose therefore to interpret the question differently: is the exclusion principle acting between the soles of my shoes and the ground, that which is holding me up?
Now, the reason why we can stand on ground is undoubtedly chemical in nature - there are chemical bonds between atoms and molecules in the ground that make it solid (as opposed to, say, liquid). Frozen water is governed by EM, by the fact that the molecule is electrically charged, and not by chemical covalent bonds.
In this sense, for me, EM is probably more important than Pauli's into making something solid (and not liquid or gaseous).
A: Holy moly, there are a lot of confused parts of answers out there.   Here is a way to begin to sort out the different related principles, physically. 


*

*The question currently asks "EM or/and Pauli?".    Short answer: Neither, although it is true that electromagnetism is the force involved (rather than the strong or weak nuclear forces, the only other candidates), and it is true that the size of atoms is determined by the uncertainty and exclusion principles, as it were.   

*Neglect or remove gravity from the situation.   Then the question really becomes, "Why are solids, at the earth's crust say (but it doesn't matter), solid, i.e. why do they resist strain, to the quantitative degree that they do?"

*We can idealize the problem.   Why do single crystals resist strain?   We replace rocks and dirt by interlaced microcrystals, or mixtures bound by friction.   In other words, why are crystals rigid?   Why can't we walk on water until it freezes?   

*What are the energy scales of the problem?   Well the typical force to be considered will be the force required to disrupt the crystal lattice.  This is about the thermal energy at melting, = k*T(melting).  So for water (since I like to think in electron volts) about 0.025 ev/molecule, for rocks about 10 times as much.  This is because the water molecules in an ice crystal are bound by hydrogen bonds with strength about 0.1 e.v. and atoms in quartz are bound by covalent bonds of about 1 ev.   So yes, electromagnetism is the involved force.
To be specific, the force on the bottom of a shoe, normally about (1kg*9.8 m/sec^2)/cm^2 = 2 x 10 -15 kg m s-2/(the area corresponding to a molecule of water on the surface of the crystal)  times the distance such a force must move the molecule (maybe 10-10 m?) = 2 x 10^-25 J or (using 6.25 x 10^18 ev/joule) 1.2 x 10-6 ev gets compared to kT as above. So the force of the shoe walking on ice supplies only about 4.8 x 10-5 of the required energy to melt or deform a crystal of ice.  So we don't sink through solid ice. 

*Here we learn an important lesson.   In physics, to talk about "a cause" is to secretly talk about the about the calculations and equations underlying computing the magnitude of the phenomenon.   So, Weisskopf, (see below) points out that the same equations with different numbers, this time using the pressure developed at the bottom of a mountain actually does reach the energy scale required to deform or melt crystals of rock (say quartz), and therefore computes the maximal height of mountains on earth (or any planet), using only a few fundamental constants.   This then carries over.   To compute the maximal height of mountains on white dwarf stars (fanciful, I think), or importantly on the surface of neutron stars (real) use the same principles, but now invoke the exclusion principal, or other forces, since these are now relevant to the energy scales involved.
On a more mundane scale and as a check, if we concentrate one's weight on a much smaller area like the blade of an ice skate, to yield a higher force, we indeed can deform ice crystals, which is said to be the reason for the low friction we experience when ice skating.

*Back to earth, shoes.   At these very small energies, compared to any atomic energy scale, to say nothing of the scales involved in the weak or strong interactions, we can should just consider atoms as single units, not as separate electrons or nuclei.   Quantum mechanics is required to allow us to neglect all the higher energy degrees of freedom which have been "frozen out" at the low (300K) average energy of the molecules involved.  Weisskopf has a good exposition of this in his popular book "Knowledge and Wonder", see esp chap. 7 on "The quantum ladder"  

*We are left with a more well defined problem:  why do liquids freeze and become solid, rigid crystalline shapes, and why are crystals rigid in the first place?   Rephrased: why does lowering the temperature a little bit, lead to "freezing out" of the translational degrees of freedom of individual molecules or atoms, with the simultaneous aquisition of a single rigid global translational phase (lattice) for the positions of all the molecules/atoms in a crystal.   In other words, why, after the phase transition, this change in the microscopic symmetry of the material, is there rigidity? 

*This also suggests the answer to the original question.  In order for strain to become large, molecules need to break from the global phase and leave their position in the crystal lattice, and the lattice resists this change cooperatively, i.e. many molecules must get disrupted, so the energy required is large, considerably larger than the energy available from the tiny pressures involved from the pressure from your weight on the sole of your shoe.   There is more, but I'll stop here for now.
P.S.   All of the Weisskopf popular physics books are terrific
A: My first answer contained a very sloppy statement that EM interaction is irrelevant because of neutrality of matter which had to be corrected. I consider interaction of two neutral atoms and leave out the question of why some matter is solid and other is not.


*

*Higher-order EM interaction does exist between atoms. What is maybe counterintuitive, it is an attractive interaction called van der Waals force. 

*Electrons repel each other but manage to stay together even if there are 50 of them in an atom. We could imagine moving two hydrogen atoms together until they (almost) form a helium atom. Electric repulsion is not going to become infinite, the total energy would be in fact lower. Electric repulsion does not prevent one atom going through another.

*However, two electrons in the same state just can not exist close to each other (Pauli exclusion) and the atomic orbitals would have to distort to avoid overlap. There is no special force that does that so eventually it comes back to an electromagnetic interaction but the fact is that without Pauli exclusion this interaction would not happen.


I should also mention the name of Lennard-Jones whose potential describes an interaction between two atoms. Note the $r^{-12}$ term for the short-range Pauli repulsion.
A: The interaction between the nucleus (the core of the atoms) and the electrons is electromagnetic, but the Pauli exclusion principle keeps them from falling into the core. This is why matter has volume, and why different objects cannot occupy the same point in space. 
You can find more details about the Pauli exclusion principle here.
Then there is the interaction between atoms that make up the different structures in nature, the rocks and the whole Earth (solids) beneath you, for instance. In these structures the atoms are bound together, mostly by electromagnetic interactions, and to pass some other atoms between them you have to invest some energy against that bound. For certain objects this energy is a lot.
Think of crystals. Our puny human fingers are way too weak to "pass between" the crystal atoms. If we build some strong machines, those can pass between the atoms in a crystal - that's called cutting. Like when the silicon crystal is sliced in a computer chip factory. Needs a lot of energy...
Then there other objects that are much less bound - you can e.g. pass between the molecules of water, it's called swimming (could be swimming in other liquids too). Those molecules are not interacting with each other much. You still cannot make your atoms occupy the same space as the H or O atoms in the water, and that's because of Pauli. And of course, you are walking around on the surface of the Earth - passing between the atoms of the air, because atoms and molecules in gasses are not bound to each other at all, you just have to move them out of your way (Pauli) but no bounding (EM) to work agains.
So in this case you mentioned, the bounding force between the atoms that make up the material beneath you is stronger than the gravitational force pushing you and the ground together, thus not enough to break those bounds and let you "slide down". 
A: Coulomb repulsion including the inverse square dependence has been experimentally verified down to nuclear lengths (by Rutherford's gold foil experiment) and even the fm (femtometer) scale (Breton V et al 1991 Phys. Rev. Lett. 66 572–5).  
To get 1000 N of force from a mol of electrons (seems like a reasonable order of magnitude for a contact area) we need to get them $ r = \sqrt{10^{23}k e^2 / 10^3} \approx 10^{-4} $m apart.   This shows that the Coulomb repulsion is more than sufficient to hold us up before we get even close to the quantum mechanical regime. 
More importantly, the Pauli Exclusion Principle is not a force.  It simply says two fermions, in this case electrons, cannot occupy the same quantum state.  It doesn't say that fermions necessarily push apart if you were to get them very close to the same quantum state (whatever that means), nor does it say that fermionic wavefunctions cannot occupy the same space (as in, x,y,z).  I think if you look at the charge distribution in orbitals of any molecule or atom, you will find plenty of non-negligible spatial overlap.  
