Primary headaches in pregnant women usually can be treated at home. Rest, a neck or scalp massage, hot or cold packs, and over-the-counter anti-inflammatory drugs such as Tylenol, aspirin, or ibuprofen can reduce the pain.