Why do you expect there to be a connection? Say (without loss of generality) the only thing you know about the distribution of a random variable $X$ is that its median is zero. To simplify lets assume a continuois distribution with cdf (cumulative distribution function
$$\DeclareMathOperator{\P}{\mathbb{P}} F(x)= \P(X \le x)=\frac12 $$
This restrains the distribution very little, and (assuming expectation of $X$ exist) it is now an exercise for you to find $F$ satisfying above with expectation $-1, 0, 1,2,3,4, \dotsc $ and many other values.
When you have constructed those examples, you will have answered your own question!