I have a bad headache in the middle top of my head accompanied by an ache in the ack of my neck. If I put pressure on the ache in the back of my neck?

Neck pain first. The headache is due to the muscle spasm coming from the neck. It pulls the muscles from the neck and goes up the back of the neck up the back of the scalp to the top of your head. If you massage the neck muscles and relax them, then the headache may start to subside. Ice packs to the neck may helps as well.
Occipital Neuralgia. Muscles, facet joints, herniated discs pressing on nerves in the region could cause your pain. Certainly the occipital nerves may get phenomenal relief of headache with a very simple in office injection that i very safe! good luck!