There is a typo. It should be OnMouseDown (capital letter) instead of onMouseDown.
But there are other things to check, too:
OnMouseDown and similar functions are called when you click on an object that has a collider (you actually have to hit the collider, not only the mesh) or a GUIElement component, such as GUIText or GUITexture AND if that object has a script attached to it with a OnMouseDown() method.
In case you’re working with the new UI system, this is not the way to go. In short: using the new UI system allows you to subscribe to events, e.g. onClick for buttons. But that’s another story.