I have estimated a gravity equation regarding agricultural exports but the coefficient of the distance variable is positive and significant but in theory it should be negative.
your sample size may be small, thats why it is not reflecting the real thing. you may increase the sample size. you may as well reduce the number of predictor variables, that may cause interaction or that are correlated