OnCollisionEnter not detected

Why does my collision script not work ? , I feel its something simple thank you for any responses

using UnityEngine;
using System.Collections;
public class FloorDamage : MonoBehaviour
{
   void OnCollisionEnter(Collision collision)
    {
			Debug.Log("<color=red>FConnected:</color> Player had Contact");
			  var hit = collision.gameObject;
			  var health = hit.GetComponent<Health>();
			  if (health  != null)
				if(collision.gameObject.name == "Player")
        {
					Debug.Log("<color=red>Damage Taken:</color>100 Taken");
            health.TakeDamage(100);
        }
    }
}

There are a couple possible issues. For Unity to listen for collisions one object needs a rigidbody. For it to read a collision neither collider can be a trigger. Also if you’re using 2D colliders you need OnCollisionEnter2D.

if you tried with rigidbody then make sure your gameobject name. it should be “Player” or not?