Make sure to wash all your parts to be painted with dish soap before doing anything else. After washing do not handle the parts as oil from your hands can cause the paint not to stick in those areas.
If item was run on a layout that had any engine running smoke it will have an oil film on it that needs to be removed for the paint to stick.