There are nerves that join your top teeth to your bottom. Sometimes it can be a problem in a lower tooth that makes your upper tooth hurt or both.
You might want to try salt water, that usually helps a lot and can reduce the pain fairly quickly. Regular old table salt and usually room temp water is best.
You might also want to try listerine mouth wash.
__________________
|