Consider the analogy of four archers who each take turns to shoot at a target using the same bow. Each archer performs quite differently
The most accurate archer is the one with shots landing in or near the middle ring of the target, the bullseye. Thus accuracy is the ability to get close to a target value, in this case the bullseye.
Accurate and precise
For the second archer, we see that the shots are also concentrated close together but away from the bullseye. This archer is not accurate because he hasn't hit the target however we can say that he is at least precise. Precision is about how results are grouped or spread or, said in another way, how repeatable they are.
Precise but not accurate
The third archer is accurate overall but not precise. The average of his shots would lie close to the bullseye but the individual shots are spread out.
Accurate but not precise
The fourth archer is neither accurate nor precise because his shots are spread out and have landed away from the bullseye overall.