Not unlike a transformer with the Earths metal core being the transformer core. Sun and the Earth. Don’t the Suns mag field lines envelope the Earth.
Yes except the core has plastic like qualities so it movement is more complex.