Unveiling Dynamics of Coronal Magnetic Field and Nonthermal Electrons in Solar Flares with Microwave Imaging Spectroscopy and 3D Modeling