Meaning : To close within bounds, or otherwise limit or deprive of free movement.
Example :
This holds the local until the express passengers change trains.
About a dozen animals were held inside the stockade.
The illegal immigrants were held at a detention center.
The terrorists held the journalists for ransom.
Meaning : Prevent (someone or something) from doing something.
Example :
Security guards restrained the reporter from throwing another shoe.