There are several questions with answers that answers this:
Difference between (bash) shell variables which are exported and those which are not
What is the difference in usage between shell variables and environment variables?
What's the difference between "export" and "setenv"?
(etc.)