am i pregnant ?

thursday morning 10/17/24 i took a pregnancy test & it came back positive , i took another later later on in the day it came back negative . does anyone have any idea what this can mean ?

also i’ve been getting headaches & cramps & been kinda moody .