What causes flank pain? I'm pregnant.

Kidneys. Flank is the area between lower ribs and back. This area can tender due to muscular spasms. Kidney infection, quite common in pregnancy can cause the same symptoms. See your doctor to be tested.