“Is it legal for the same judge to sit on two different cases for the same person? One is criminal and the other is family.”

Yes. I’m assuming that your concern is that the judge’s knowledge of the criminal case could taint the family law case, or vice versa. However, keep in mind that the information about one case can be introduced in the other case in any event.