France pulled off the shock result of the opening day of the World Championships by beating reigning champions Spain 72-66.