Hmm. Have you tried using a GetComponent instead of using the cached rigidbody on ABall class just to rule things out?
Also it would be great if you can try using Mono scripting backend instead of IL2CPP to test if it is working? If yes, this can give us more leads to follow for this problem.