Replaced my car battery and now the radio is locked ?
The code will have to be entered to unlock the radio, you can try some of those listed on the internet but they rarely work, your best and quickest bet is the dealer.
Also you have a problem with body control systems, when they loose power sometimes they won't reset and the dealer will have to do that too.
Search BMW Z3 Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
BMW Z3 Experts