See your doctor
While these two symptoms are likely unrelated, if the pain in either spot is constant, increasing or unrelieved with simple over-the-counter pain medications, then you should see your physician.
If you are female, a gynecologist
can address the pelvic pain
(spleen in in the upper left part of the abdomen), and can refer you to someone for your headaches.