The doors use to lock automatically when I started driving. They stopped locking… Why?
I have no idea but a 2018 should still be under warranty so let the dealer fix it . Unless you changed the lock feature in the menu by mistakes.
Many vehicles allow the operator to select whether the doors lock automagically. Have you checked your infotainment system’s settings to see how your vehicle is presently configured?