Drive 5v relay with 2N2222

Did you try adding a base resistor ?