To clam up means to become silent because you are nervous, embarrassed or don't want to talk about something.
Examples:
Adam was very naughty and ate all the cookies. When his mother asked where they were he clammed up and couldn't tell her.
When I was young I used to clam up when a stranger asked me a question.