Weak Compactness in $W^{1,p}$