Millis Function only returning Zero

I actually had the delay function in my code initially, but it wasn't working as expected. If I ran everything in my code except for the delay (which I commented out) it worked, except of course the program didn't wait five seconds. I'm not sure why that is, but I tried millis() as an alternative that I could check with serial.print.