By Alexander duality, $\mathbb{S}^3\setminus S$ has two connected components with trivial homologies. On the other hand, $A$ is nontivial in $H_1(\mathbb{S}^3\setminus B)$ --- a contradiction.