A long gap without hearings does not end the cases; they remain pending in the court to which they were transferred, and you must keep appearing or you risk a warrant. First find out the present court, case numbers and next dates from the court office or the eCourts website, as a transfer often resets the board. Then (1) file an application before that court asking for early dates and framing of charge or recording of evidence, pointing out the delay; (2) if nothing moves, approach the High Court under Section 482 CrPC, now Section 528 BNSS, or Article 227, for a direction to conclude the trial within a fixed time, relying on the right to speedy trial under Article 21; (3) if you genuinely apprehend bias, seek transfer from the Sessions Judge or the High Court on that specific ground with supporting material. Delay alone is not a ground for acquittal, and your complaint against the Magistrate will be dealt with separately on the administrative side.