Right rear wheel is clicking then locking up

The right rear wheel on my 2003 Toyota Solara is clicking then freezes up, any ideas on what it might be?

The brakes and the bearing on that wheel need to be inspected to determine what’s causing that tire to lock up.