Bosch washing machine (Wheathampstead AL4)

It is about 15 years old and unreliable. Sometimes won’t drain and then won’t spin but can easily be drained manually and it will then work.
Spin is not that great either.