Revert an Android phone to vanilla rom from Google
A real vanilla ROM is not possible because you need drivers for the hardware in your mobile. This drivers depend on the manufacturer.

The nearest thing you can get is a custom ROM like CyanogenMod.