What would cause the printer to keep going without filament coming out?

My printer for the last two prints starts printing fine then eventually starts “air printing”. How do I fix this?