We have learned that for quantum mechanical systems, energy and position are incompatible observables. If the system is in a position state, it is not in an energy state and vice versa. If we measure the position of the system, it is now in a position state. Since that is not an energy state, we cannot predict the exact outcome when we measure the system’s energy.
..... So, for now, let’s just suppose there is some other observable that is compatible with energy. Let’s call that observable A, described by the wavefunction ψA,n with possible measured values An. If we measure the energy of a quantum mechanical system, the quantum mechanical system will now be in an energy state. Let’s say we measured the energy of the system to be E3, which is the third picture with three loops in Fig. 1.

Fig. 1 The first three standing waves of a one dimensional rope or slinky. For this example, the rope is fixed at x =−L and x =+L
Now we measure A and obtain A3. If we went back and measured energy, we will find that the system is still in the state with three loops with energy E3. Next, we measure A. If energy and observable A are compatible, we will measure A3. This is because two compatible observables share a set of states. In other words, if the energy state has the wavefunction with three loops (ψ3), and we measure A, we will find A = A3 and that the wavefunction is unchanged. It still has three loops.
As you see, states are extremely important in quantum mechanics. Every observable has a set of associated states. Each energy state corresponds to a specific energy. If we measure the system’s energy, it will be in one of those states with the associated energy. Similarly, measuring position, momentum, or any other observable places the system in one of the states for that observable. Some observables share a set of states (they are compatible, and subsequent measurements do not alter the previous values), while others have different states (they are incompatible, and knowing one means we don’t know the other).