In short: Both are correct. If the block starts at the extreme right, x = A cos ωt gives x = A at t = 0, and the same motion can be written x = A sin(ωt + 90°). Sine and cosine differ only by a phase shift, cos ωt = sin(ωt + 90°). What matters is where the object is at t = 0.
1. Is one of the textbook forms wrong? No. Both are correct, because sine and cosine differ only by a phase shift.
2. How do the two equations describe the same motion? At t = 0, cos 0 = 1 gives x = A, and sin 90° = 1 also gives x = A. In general, cos ωt = sin(ωt + 90°).
3. How do I choose between sine and cosine? Ask where the object is at t = 0, then pick the form and phase that fit that starting point. Either is fine.
Want more AP Physics 1 help like this?