When you say that someone has all his/her marbles, you mean that he/she is mentally sound.
Here are a few examples:
· My neighbor is nearly 90 years old, but she hasn’t lost her marbles.
· If you are forced to stay in your apartment for another week, I’m sure you will lose your marbles.
To know more, Visit: http://www.english-for-students.com/