I assume you mean the easiest gear on the front and back, meaning the small chain ring up front and the large sprocket in the back.
Start with a new chain first. If you get a new cassette you'll also need a new chain anyways. A bike shop should be able to look at the drive train to see which part needs to be replaced.