Collider with trouble

I put the tag Ball over my key;
180057-captura-de-tela-2021-04-29-175222.png
But when it crashes it doesn’t activate the wall;
180059-giphy-1.gif
This is my code;

using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class Wall : MonoBehaviour
 {
     //public GameObject wallActive;
 
     private void OnCollisionEnter2D(Collision2D other)
     {
         if(other.gameObject.tag == "Ball")
         {
             Destroy(this.gameObject);
             //wallActive.gameObject.SetActive(true);
         }
     }
 }

I need a help.

On which gameobject is the code? Maybe you have to switch this.gameobject with other.gameobject