Isolate each component.
If you've cleaned the drivetrain, most likely it is residual dirt/sand that you did not get out of the chain - this is difficult to do comprehensively. Test the pedals, indepedently, test the bottom bracket with the chain off the crankset.