I cannot get my code to play music in a or manner. I have to open one switch then the other. Music should play with either door open
First of all, you have to find out how your magnetic switches work. Are they opened or closed if you attach a magnet to them? Do they behave the same or is one closed and the other opened if you attach a magnet?
Your code above is written for active LOW switches i.e. if the respective door is closed the switch is opened and therefore the logic level of the pin is HIGH. The level is LOW if the door is opened (activated; hence active LOW).
In order your code had a chance to work, the switches must be connect the right way: on one side connect them to GND and on the other side to the respective Arduino pin. If this is not the case, the code must be changed or the switches must be conneted the right way. You did not show us your schematic, so I can not check it for you.
Here is some code to try: But first find out if the switches you use are LOW or HIGH active. I also have no access to an IDE at the moment, so I can not try out the code. Take it as a hint on how to do it.
And one tip from a guy that does the job for 30 years now: Don't comment variables if their names say it all:
//  this sort of comments makes the code unreadable --V
const int ringDoor=2;                          //Ring door 

I know it is a common behavior in the Arduino community, but don't write comments after a statement. In your code above I did realize that there are comment for the if statements only when I copied the code in my answer. Comments are only usefull if they say something new and can be read without problems.
#include &lt;SD.h&gt;
#include &lt;TMRpcm.h&gt;
#include &lt;Stepper.h&gt;
TMRpcm tmrpcm;

const int stepsPerRevolution = 2048;
const int ringDoor = 2;             
const int necklaceDoor = 7;         
const int relayPower = 22;

Stepper myStepper = Stepper( stepsPerRevolution, 8, 10, 9, 11 );
    
void setup() 
{
  Serial.begin( 9600 );          
  if ( ! SD.begin( 53 ) )           
  {
    Serial.println( &quot;failed!&quot; ); 
    return;
  }
  
  tmrpcm.speakerPin = 46;      
  myStepper.setSpeed( 5 );       
  pinMode( ringDoor, INPUT );     
  pinMode( necklaceDoor, INPUT ); 
  pinMode( relayPower, OUTPUT );  

  digitalWrite( ringDoor, HIGH ); 
  digitalWrite( necklaceDoor, HIGH );

  digitalWrite( relayPower, LOW );    
}

void loop() {

  // the following code works if both switches are LOW active 
  // (i.e. LOW if the door is open)
  // if the &quot;ringDoor-switch is HIGH active change 
  // digitalRead( ringDoor ) == LOW to 
  // digitalRead( ringDoor ) == HIGH
  // if the &quot;necklaceDoor-switch is HIGH active change 
  // digitalRead( necklaceDoor ) == LOW to 
  // digitalRead( necklaceDoor ) == HIGH
  // and 
  // digitalRead( necklaceDoor ) == HIGH to 
  // digitalRead( necklaceDoor ) == LOW

  if ( ( digitalRead( ringDoor )     == LOW ) ||
       ( digitalRead( necklaceDoor ) == LOW ) ) 
  {                                                                                        
    // one of the doors is open
    digitalWrite( relayPower, HIGH );
    tmrpcm.play( &quot;music.wav&quot; );
    if ( digitalRead( necklaceDoor ) == HIGH )
    {
      // only the ring door is opend
      myStepper.step( stepsPerRevolution );
      delay( 500 );
      myStepper.step( -stepsPerRevolution );
      delay( 500 );
    }
  }
  else
  {
    digitalWrite( relayPower, LOW );
  }
}