In my case and with the very same symptoms and after checking all the usual culprits, I discovered that I had broken wire under the rubber "snake" in the right rear upper corner (IIRC) when you open the trunk lid.
That wire leads to antena in rear window which is used by remote.
Post #35 here:
https://www.bimmerforums.com/forum/s...-issue)/page2&