Notice in the first image the “forward tilt” of the pant line. This is INCORRECT. It occurs with both tight hip flexors and weak abdominals.
The second image shows the CORRECT positioning of the pelvis. Notice that the pant line is straight. To practice this, contract your gluteal (or butt) muscles. Do NOT contract your stomach muscles at the same time!