The cable nut should slide over that flange, enough to engage the threads.
Is that a new steering cable? You might pull the nut back onto the plastic part of the cable and shine a light into it. There has to be some debris inside the nut that is interfering. Something could have fallen into...