If the trunk lid can only be opened sporadically via the button in the glove compartment or only via the remote control, then the electrical switch for the trunk lid is defective, which happens relatively often.
Note:
The button closes contact A to C, see picture 3.
Scope of delivery:
Aftermarket button for trunk lid