Hello Sneha
it could be due to gastritis or the expanding uterus, you can try taking some home remedies like ajwain and jeera water, take liquids in good amount and avoid spicy oily foods
if the pain persists then consult your obg specialist or physician