Something caught between the two tubs can cause problems with spinning as can a mechanical problem inside the washer like a clutch or the washer not draining. If you post the brand of washer and its model number, someone may be able to advise other things to check.
You can find tips for locating the model number on your appliances in the 'Repair Parts' section of my site linked below.