I will give away all my points for whoever get's this right

I am taken from a mine, and shut up in a wooden case, from which I am never released, and yet I am used by almost everybody. What am I?