You lose access to Xbox Live Gold / Game Pass Ultimate benefits until you renew.
Auto-renewal prevents lapses. Turn off in Microsoft Account → Services if you prefer manual control.