how do i know

If im miscarrying at 22 weeks.. i get alot of aches in my lower pelvis and feel like im gonna losd him..