Night pains

Last night i felt so much pain in my belly and lower area it was so horrible i couldnt walk sit up or move im unsure of why and my cycle has been so werid this past month i barely had a cucle more like spotting here and there and ive tested many times always negative idk whats going on