Hello Sir or Madam. Welcome to justanswer!
The problem is in whats called the BC1 which is the body control module that controls the lams and various other electrical devices. Only this part can make the symptoms you describe. This part should be replaced.
The module needs programming in the car. You cant do the job at home. The location is in the file below:
CLICK HERE FOR PDF FILE DOWNLOAD