Can i wire ceiling fan ( no light) and 2 recessed lights on One dimmer switch?
You'll need a special sort of dimmer for this

What you need for this job isn't an ordinary dimmer switch, it's a combination dimmer/fan speed controller.  Fortunately, this isn't too rare a product (most of the major lighting controls manufacturers make them).

Once you have one (get one that's a self-contained unit vs. one that needs a module in the fan base), simply wire it as per the instructions, and you should have speed control of the fan and dimmed lights at that point.  (If you get stuck, ask another question here, specifying the make and model of the fan controller in question.)