Do you want to ask how it happened? I think you need to say:
'How did she break her leg?'
or, if you already know that she has broken her leg, you would say:
'How did she break it?'
If you need to find out whether the person has broken her leg, you would say:
'Has she broken her leg?' or 'Has she broken it?'