What is the best medicine to take for lower abdominal pains while on my period?

None. It is far better to see you doctor than to self medicate there are many different possilbilities and degrees of severity.