The broken sash latches can probably be replaced. There are several types of latches, but in most cases it's possible to restore the latching action by installing simple surface-mounted latches (your windows might already have this type). The latches are located at the top corners of each sash, one latch on each side.
How much does it cost to replace window latch?
Expect to spend anywhere between $100 and $800 to complete this project, depending on how many windows are affected, what is causing the problem, and how much labor goes into completing the project. The average cost to repair a window latch is around $300.
Can you replace locks on windows?
Even if this is the case, it's possible to simply replace the lock itself, without having to replace the whole window unit. There are a wide range of hints and tips to help you when it comes to replacing window locks and handles, and it's often a case of simply following the instructions.