Understanding the sub-critical transition to turbulence in wall flows