Caulk parts of long and deep cracks. Use a small bead of caulk, smoothing it out very well. Hold out to dry totally ahead of sanding. Differing types of wood have unique paint needs. One example is, porous wood like pine may well demand a paint sealer to forestall paint https://paintingthepastuk.co.uk/products/wood-paint-blue-no-5