From Fourier to Neural ODEs: Flow Matching for Modeling Complex Systems