I am not detecting any collisions

Make sure one of the two (snake or collectible) has both a Rigidybody2D and Collider2D (of some kind). They both need Collider2Ds but one of them needs Rigidbody2D.