The internal moment of a beam is comprised of compression and tension stresses. In a wide flange beam (which I believe is equivalent to an HEB), those stresses are predominantly in the flanges. So you end up with a tension flange and a compression flange. You should be able to determine which is which based on the moment at that location in the beam.
Checks for the beam occur all along the length, not just at one point. In many cases we can simplify our designs down to a simple span beam and we know, by experience, where the worst case or "controlling" condition will be and we can just check that one. But in continuous beams or more complex setups, we sometimes have to check the capacity of the section at several points along the beam and compare it to the moments, shears, and axial forces that occur there.