What does ‘put a cork in it’ mean?

( vp ) To stop talking. You talk too much; put a cork in it.