Observation of sequence of transitions from 2D to 3D superconducting state in YBa2Cu3O6+x single crystal