All 3D interaction between gameobjects and the mouse needs be done through COLLIDERS. Colliders are responsible of intercepting events between gameobjects and the world, basically.
1 add a collider of any type to your gameobject
2 add the following code in a c# script that you attach to the gameobject