clam up

US /klæm ʌp/
UK /klæm ʌp/
"clam up" picture
1.

to suddenly stop talking, especially when you are expected to speak

:
When the police started asking questions, he just clammed up.
She tends to clam up when she's nervous.