Here Is the solution of problem. as I have explain earlier I need five records from the table and then check new password with existing five record that if this new password has any matched with previous one then return false else return true.
DECLARE @UserID INT = 6
DECLARE @Password NVARCHAR(200)= 'admin1958'
SELECT * FROM
( SELECT TOP(5) ChangedPassword AS Changed ,PasswordChangeHistory.Password_Hash AS Password_Hash
FROM PasswordChangeHistory WITH ( NOLOCK )
INNER JOIN [User] U WITH ( NOLOCK ) ON PasswordChangeHistory.UserID = U.Id
WHERE PasswordChangeHistory.UserID = @UserID
ORDER BY PasswordChangeHistory.ID DESC
) AS result
WHERE result.Changed= dbo.Encrypt_MD5(@Password) or result.Password_Hash = dbo.Encrypt_SHA2(@Password)