Toothache and earache

Really painful toothache and earache,I'm 39+2 days don't know what I can take to help,please I can't sleep its to painful