I had exactly the same thing last week - pain in my wisdom tooth stopped me sleeping for 3 days, and I got (what I thought was) a cold at the same time.
As it turned out, it wasn't actually a toothache at all - it was sinusitis! Apparently, the back teeth are rooted into the sinus area, which means an infection in one will affect the other.....
But you have my sympathy - the pain on top of the sleeplessness just saps all the will out of you. Stick with it, mate - whether it's a dental issue or something else (like mine), someone will sort you out!