collsion static body


To detect a collision betwen a static collider and a rigidbody collider I cant use the OnCollisionEnter function to detect this and the Ontrigger didnt work either?
I move a sphere with a rigidbody and colldier into a static collider (default cube).

How can I detect a collsision?

void OnTriggerEnter(Collider other) {
print (;

void OnCollisionEnter(Collision collision) {
print (;}

The sphere had a character controller and therefore only this collision below will work. If I just had a rigidbody then this would work.