Collision script doesnt work,OnCollisonEnter2D does not work if it collides with the enemy

public class EnemyHealth : MonoBehaviour
{
public float EnemyH = 20f;
public float damageAmount = 10f;

    private void OnCollisionEnter2D(Collision2D collision)
    {
        if(collision.gameObject.tag == "Bullet")
        {
            EnemyH -= damageAmount;
        }
    }

    private void Update()
    {
        EnemyDeath();
    }

    void EnemyDeath()
    {
        if(EnemyH < 1)
        {
            Destroy(gameObject);
        }
    }
}

I want to make a enemy health scipt that will destroy the enemy if the health reaches 0, does anybody know why it doesnt work ?, public class EnemyHealth : MonoBehaviour
{
public float EnemyH = 20f;
public float damageAmount = 10f;

    private void OnCollisionEnter2D(Collision2D collision)
    {
        if(collision.gameObject.tag == "Bullet")
        {
            EnemyH -= damageAmount;
        }
    }

    private void Update()
    {
        EnemyDeath();
    }

    void EnemyDeath()
    {
        if(EnemyH < 1)
        {
            Destroy(gameObject);
        }
    }
}

I want to make a enemy health scipt that will destroy the enemy if the health reaches 0, does anybody know why it doesnt work ?

the first thing i would say is can you provide some screen shots of the unity window not just the inspector or the scene view but whole window and this is what i need to see go to runtime ie hit play up top fire a bullet and the pause the runtime dont end it puase it the click on the enemy while clicked hold alt and type the prscr button and then in the chat input hold cntrl v will paste it in the chat is they allow images in them! then you would do the same while still pause click on the bullet and screen shot that and you could i guess email me the screen shots