The nature of the radius valley : Hints from formation and evolution models