In my philosophy class, we read We by Yegevny Zamyatin. In that society, there is a wall that confines people, who are all named with alphanumeric codes. The wall and the operations they receive are meant to prevent them from having an imagination so they can't rise up against the government.
This reminds me of a story that takes place in a similar time period, Pink Floyd's 1979 album "The Wall." Instead of the government cutting the people off, the protagonist, Pink, cuts himself off by building a metaphorical wall in his mind. He loses his father in WWII as a child, his mother is too protective of him, his teachers are belittling, and his marriage is failing. His rage and his sheltered life lead him to destructive actions, such as destroying a hotel room and using drugs. Each person who wrongs him is "another brick in the wall" until he realizes exactly how massive this wall is and he will have to either tear it down or learn to live in seclusion. He doesn't know what's happening outside the wall and he can't learn anything from people. Eventually, he is reduced to learning from his memories and having delusions. The memories of the people who hurt him become distorted into other symbols, and they put him on trial and sentence him to tear down the wall. It's a pretty sweet album. You can listen to it here. The album artwork itself is interesting; the front and back look like this
But when you open it, it looks like this to show what's happening on the other side of the wall.