GE Washer agitator not working and will not spin

I have retried washer and agitator is working.The machine doesn’t spin, but water fills and pumps out.Could this be a coupler hub assembly problem?