issues with agitator and drum

first the agitator quit working and then the tub stopped spinning. it still goes throough a complete cycle and drains properly but no function from the tub or agitator

Given that it drains means the motor is running freely which suggests the transmission has failed. Given that it is an older model I think your best solution is a replacement.