Buses will be replacing train services in the area while maintenance work is being carried out.