In your device settings, go to the Mobile Service/SIM Manager page. Select the SIM card/eSIM you want to turn on/off from the SIM profiles listed.
Important to note: Although a device may support installing multiple SIM profiles, only 2 mobile lines can be active at a time.