The wings produce not only lift, but also a pitching moment. Usually, it is destabilizing in the sense that it causes nose up of the aircraft as the aerodynamic center is in front of the cg (which causes further nose up and so on). This moment is then counteracted by the tail.

Pic: adg.stanford.edu.
As we move the wing to the aft, the stability increases and once the wing is behind the c.g, the aircraft becomes stable.

Pic: adg.stanford.edu
Although this is stable, the configuration causes a nose down moment when lift is increased. However, we also want that the aircraft be trimmed (i.e. at moment equilibrium at the desired c.g).
With single wing, this is not easy with a reasonable static margin. Another thing is that as the wing is moved aft, the c.g also shifts aft.
It is possible to have wings in the rear. In that case, it becomes necessary to add a canard for controlling at he aircraft. A good example would be the Gyroflung Speed Canard.

As already noted, the aircraft has a canard for control.
The location of the engine and wing are related. As the engines are moved aft, the c.g. shifts in that direction and the wing is moved aft to reduce the tail surface needed.