Existence Theorems for a Class of Variational Inequalities and Applications to a Continuous Model of Transportation