you either need string marks (') in the query:
"SELECT [phonecode] FROM [countryr] WHERE ([name] = 'PAKISTAN' )");
OR use the paramerter @name
"SELECT [phonecode] FROM [countryr] WHERE ([name] = @name )");
parameters do not need string marks, strings do
hope that helps ^_^
Andy