Thanks for posting your query.
It is very difficult to say what is the cause of the pain till a doctor examines you. The chances are that it may be something simple and easily treated, like muscular pain
or gastritis( excess of stomach acid).
However, as you are pregnant, it is better to get it checked out properly.
Hope that answers your question.