Like mentioned above 98% of the time it is the one in the rears fault but if you have some way of proving that they did indeed brake check then its their fault but that is hard to prove unless you have a dash cam or someone witnessed it that has one.
This. Without proof the assumption is you were following to close. Get a dashcam to prove it was the other driver's fault.