my period

samar

my period was change alot after taking contraciptive pills . i stop it and get pregnant after that i had miscariage on 3rd month . after all of this my period become more painful and reduction of flow (brown _black color) what is the cause ??