Villarreal scored three goals in nine minutes to rout Rayo Vallecano 4-0 in La Liga and move up to second in the standings.